API
This endpoint takes multipart/form-data
requests. The following is a list of sample requests:
[nix-shell:~/Desktop/foo]$ ghci -package ghc | |
GHCi, version 8.4.3: http://www.haskell.org/ghc/ :? for help | |
Prelude> import GHC | |
Prelude GHC> | |
Leaving GHCi. | |
[nix-shell:~/Desktop/foo]$ ghci | |
GHCi, version 8.4.3: http://www.haskell.org/ghc/ :? for help | |
Prelude> import GHC |
resolver: lts-7.19 | |
compiler: ghcjs-0.2.1.9007019_ghc-8.0.1 | |
compiler-check: match-exact | |
setup-info: | |
ghcjs: | |
source: | |
ghcjs-0.2.1.9007019_ghc-8.0.1: | |
url: http://ghcjs.tolysz.org/ghc-8.0-2017-02-05-lts-7.19-9007019.tar.gz | |
sha1: d2cfc25f9cda32a25a87d9af68891b2186ee52f9 |
# Function which takes a list of packages to install and creates a | |
# tarball which contains the full list of dependencies of those paths, | |
# and a script which will install them. | |
# | |
# For example, here's how you would create a tarball packaging up | |
# python3 and nodejs: | |
# | |
# | |
# let | |
# pkgs = import <nixpkgs> {}; |
{ pkgs ? import <nixpkgs> {}}: | |
let | |
texpkgs = pkgs.texlive.combine { | |
inherit (pkgs.texlive) scheme-small latexmk; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "mbd"; |
{ pkgs ? import <nixpkgs> {}}: | |
let | |
texpkgs = pkgs.texlive.combine { | |
inherit (pkgs.texlive) scheme-small latexmk; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "mbd"; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
diff -ru nix-1.11.7/scripts/download-from-binary-cache.pl.in nix-1.11.7-new/scripts/download-from-binary-cache.pl.in | |
--- nix-1.11.7/scripts/download-from-binary-cache.pl.in 1970-01-01 00:00:01.000000000 +0000 | |
+++ nix-1.11.7-new/scripts/download-from-binary-cache.pl.in 2017-03-16 22:54:37.938616657 +0000 | |
@@ -86,6 +86,7 @@ | |
$curl->setopt(CURLOPT_USERAGENT, $userAgent); | |
$curl->setopt(CURLOPT_NOBODY, 1) if $head; | |
$curl->setopt(CURLOPT_FAILONERROR, 1); | |
+ $curl->setopt(CURLOPT_NETRC, 1); | |
$curl->setopt(CURLOPT_CONNECTTIMEOUT, $curlConnectTimeout); | |
$curl->setopt(CURLOPT_TIMEOUT, 20 * 60); |
diff -u -r nix-1.11.7-old/scripts/download-from-binary-cache.pl.in nix-1.11.7/scripts/download-from-binary-cache.pl.in | |
--- nix-1.11.7-old/scripts/download-from-binary-cache.pl.in 2017-02-26 02:31:19.000000000 -0800 | |
+++ nix-1.11.7/scripts/download-from-binary-cache.pl.in 2017-02-26 02:32:59.000000000 -0800 | |
@@ -76,6 +76,7 @@ | |
$curl->setopt(CURLOPT_PRIVATE, $curlId); | |
$curl->setopt(CURLOPT_URL, $url); | |
+ $curl->setopt(CURLOPT_NETRC, 1); | |
open (my $fh, ">", \$requests{$curlId}->{content}); | |
$curl->setopt(CURLOPT_WRITEDATA, $fh); |
diff -ru nix-1.11.7/scripts/download-from-binary-cache.pl.in nix-1.11.7-new/scripts/download-from-binary-cache.pl.in | |
--- nix-1.11.7/scripts/download-from-binary-cache.pl.in 1970-01-01 00:00:01.000000000 +0000 | |
+++ nix-1.11.7-new/scripts/download-from-binary-cache.pl.in 2017-03-16 22:54:37.938616657 +0000 | |
@@ -86,6 +86,7 @@ | |
$curl->setopt(CURLOPT_USERAGENT, $userAgent); | |
$curl->setopt(CURLOPT_NOBODY, 1) if $head; | |
$curl->setopt(CURLOPT_FAILONERROR, 1); | |
+ $curl->setopt(CURLOPT_NETRC, 1); | |
$curl->setopt(CURLOPT_CONNECTTIMEOUT, $curlConnectTimeout); | |
$curl->setopt(CURLOPT_TIMEOUT, 20 * 60); |