- Feb 07, 2017
-
-
Janus Troelsen authored
-
Shea Levy authored
-
Shea Levy authored
Fixes #341
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This is useful for nix-copy-closure.
-
Eelco Dolstra authored
For example, SSH stores could be trusted.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
exportPaths() already does this.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Replaced by SSHStore.
-
Eelco Dolstra authored
-
- Feb 02, 2017
-
-
Eelco Dolstra authored
This prevents breaking compatibility with builders that read "closure.*", since they would accidentally pick up the new JSON files.
-
- Feb 01, 2017
-
-
Eelco Dolstra authored
In particular, this fixes Ctrl-C in nix-shell sessions.
-
- Jan 27, 2017
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Jan 26, 2017
-
-
Eelco Dolstra authored
This writes info about every path in the closure in the same format as ‘nix path-info --json’. Thus it also includes NAR hashes and sizes. Example: [ { "path": "/nix/store/10h6li26i7g6z3mdpvra09yyf10mmzdr-hello-2.10", "narHash": "sha256:0ckdc4z20kkmpqdilx0wl6cricxv90lh85xpv2qljppcmz6vzcxl", "narSize": 197648, "references": [ "/nix/store/10h6li26i7g6z3mdpvra09yyf10mmzdr-hello-2.10", "/nix/store/27binbdy296qvjycdgr1535v8872vz3z-glibc-2.24" ], "closureSize": 20939776 }, { "path": "/nix/store/27binbdy296qvjycdgr1535v8872vz3z-glibc-2.24", "narHash": "sha256:1nfn3m3p98y1c0kd0brp80dn9n5mycwgrk183j17rajya0h7gax3", "narSize": 20742128, "references": [ "/nix/store/27binbdy296qvjycdgr1535v8872vz3z-glibc-2.24" ], "closureSize": 20742128 } ] Fixes #1134.
-
Eelco Dolstra authored
Previously, all derivation attributes had to be coerced into strings so that they could be passed via the environment. This is lossy (e.g. lists get flattened, necessitating configureFlags vs. configureFlagsArray, of which the latter cannot be specified as an attribute), doesn't support attribute sets at all, and has size limitations (necessitating hacks like passAsFile). This patch adds a new mode for passing attributes to builders, namely encoded as a JSON file ".attrs.json" in the current directory of the builder. This mode is activated via the special attribute __structuredAttrs = true; (The idea is that one day we can set this in stdenv.mkDerivation.) For example, stdenv.mkDerivation { __structuredAttrs = true; name = "foo"; buildInputs = [ pkgs.hello pkgs.cowsay ]; doCheck = true; hardening.format = false; } results in a ".attrs.json" file containing (sans the indentation): { "buildInputs": [], "builder": "/nix/store/ygl61ycpr2vjqrx775l1r2mw1g2rb754-bash-4.3-p48/bin/bash", "configureFlags": [ "--with-foo", "--with-bar=1 2" ], "doCheck": true, "hardening": { "format": false }, "name": "foo", "nativeBuildInputs": [ "/nix/store/10h6li26i7g6z3mdpvra09yyf10mmzdr-hello-2.10", "/nix/store/4jnvjin0r6wp6cv1hdm5jbkx3vinlcvk-cowsay-3.03" ], "propagatedBuildInputs": [], "propagatedNativeBuildInputs": [], "stdenv": "/nix/store/f3hw3p8armnzy6xhd4h8s7anfjrs15n2-stdenv", "system": "x86_64-linux" } "passAsFile" is ignored in this mode because it's not needed - large strings are included directly in the JSON representation. It is up to the builder to do something with the JSON representation. For example, in bash-based builders, lists/attrsets of string values could be mapped to bash (associative) arrays.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Fixes: nix-store: src/libstore/build.cc:3649: void nix::Worker::run(const Goals&): Assertion `!awake.empty()' failed.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This is a hopefully temporary measure to diagnose the intermittent "HTTP error 200" failures.
-
Eelco Dolstra authored
startBuilder() is getting rather obese.
-
- Jan 25, 2017
-
-
Domen Kožar authored
Makefile.config.in: drop unused bsddiff_compat_include
-
Domen Kožar authored
Bail out if MacOS 10.9 or lower is used during installer
-
Domen Kožar authored
-
- Jan 24, 2017
-
-
Sergei Trofimovich authored
bsddiff_compat_include configure.ac substitution was removed in commit 16d9c872 Signed-off-by:
Sergei Trofimovich <siarheit@google.com>
-
Eelco Dolstra authored
This reverts commit f7f0116d. Issue #1174.
-
Eelco Dolstra authored
Revert "builtins.readFile: Put the references of the file, not those needed to realize the file, into the context" Reverting commit 451c223d for now because it breaks http://hydra.nixos.org/build/46805136, not clear why.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Closes #1182.
-