- Jul 30, 2017
-
-
Jörg Thalheim authored
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
-
- Jul 28, 2017
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Jul 27, 2017
-
-
Eelco Dolstra authored
This adds an argument "rev" specififying the Git commit hash. The existing argument "rev" is renamed to "ref". The default value for "ref" is "master". When specifying a hash, it's necessary to specify a ref since we're not cloning the entire repository but only fetching a specific ref. Example usage: builtins.fetchgit { url = https://github.com/NixOS/nixpkgs.git; ref = "release-16.03"; rev = "c1c0484041ab6f9c6858c8ade80a8477c9ae4442"; };
-
Eelco Dolstra authored
I.e. if the local ref is more recent than tarball-ttl seconds, then don't check the remote.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This prevents an expensive call to addToStore() in the cached case.
-
- Jul 26, 2017
-
-
Eelco Dolstra authored
The package list is now cached in ~/.cache/nix/package-search.json. This gives a substantial speedup to "nix search" queries. For example (on an SSD): First run: (no package search cache, cold page cache) $ time nix search blender Attribute name: nixpkgs.blender Package name: blender Version: 2.78c Description: 3D Creation/Animation/Publishing System real 0m6.516s Second run: (package search cache populated) $ time nix search blender Attribute name: nixpkgs.blender Package name: blender Version: 2.78c Description: 3D Creation/Animation/Publishing System real 0m0.143s
-
Eelco Dolstra authored
Note that this removes the need for a derivation symlink, so the --drv-path and --add-drv-link flags now do nothing.
-
- Jul 20, 2017
-
-
Eelco Dolstra authored
This adds about 0.1s to nix-shell runtime in the case where bashInteractive already exists. See discussion at https://github.com/NixOS/nixpkgs/issues/27493.
-
Eelco Dolstra authored
$NIX_PATH may contain elements that don't evaluate to an attrset (like "nixos-config"), so ignore those.
-
Eelco Dolstra authored
BuildError denotes a permanent build failure, which is not the case here.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Jul 18, 2017
-
-
Dmitry Kalinkin authored
This is UB and causes buffer overflow and crash on linux.
-
- Jul 17, 2017
-
-
Eelco Dolstra authored
In particular, don't use base-64, which we don't support. (We do have base-32 redirects for hysterical reasons.) Also, add a test for the hashed mirror feature.
-
Eelco Dolstra authored
In particular, this allows it to be disabled in our tests.
-
Eelco Dolstra authored
-
- Jul 14, 2017
-
-
Eelco Dolstra authored
E.g. $ nix path-info --json --store https://cache.nixos.org nixpkgs.thunderbird -S ... "downloadHash": "sha256:1jlixpzi225wwa0f4xdrwrqgi47ip1qpj9p06fyxxg07sfmyi4q0", "downloadSize": 43047620, "closureDownloadSize": 84745960 } ]
-
Eelco Dolstra authored
This doesn't work in read-only mode, ensuring that operations like nix path-info --store https://cache.nixos.org -S nixpkgs.hello (asking for the closure size of nixpkgs.hello in cache.nixos.org) work when nixpkgs.hello doesn't exist in the local store.
-
Eelco Dolstra authored
Now you get [ { "path": "/nix/store/fzvliz4j5xzvnd0w5zgw2l0ksqh578yk-bla", "valid": false } ]
-
Eelco Dolstra authored
On second though this was annoying. E.g. "nix log nixpkgs.hello" would build/download Hello first, even though the log can be fetched directly from the binary cache. May need to revisit this.
-
Eelco Dolstra authored
Fixes #1464.
-
Eelco Dolstra authored
-
- Jul 11, 2017
-
-
Eelco Dolstra authored
Not really necessary anymore for #849, but still nice to have.
-
Eelco Dolstra authored
Fixes #849.
-
- Jul 09, 2017
-
-
Rhys authored
-
- Jul 07, 2017
-
-
Matthew Bauer authored
Fixes #1443
-
- Jul 04, 2017
-
-
Eelco Dolstra authored
Fixes #1432.
-
Eelco Dolstra authored
Fixes #1438.
-
Eelco Dolstra authored
As shlevy pointed out, static variables in C++11 have thread-safe initialisation.
-
Eelco Dolstra authored
This allows builds to call setuid binaries. This was previously possible until we started using seccomp. Turns out that seccomp by default disallows processes from acquiring new privileges. Generally, any use of setuid binaries (except those created by the builder itself) is by definition impure, but some people were relying on this ability for certain tests. Example: $ nix build '(with import <nixpkgs> {}; runCommand "foo" {} "/run/wrappers/bin/ping -c 1 8.8.8.8; exit 1")' --no-allow-new-privileges builder for ‘/nix/store/j0nd8kv85hd6r4kxgnwzvr0k65ykf6fv-foo.drv’ failed with exit code 1; last 2 log lines: cannot raise the capability into the Ambient set : Operation not permitted $ nix build '(with import <nixpkgs> {}; runCommand "foo" {} "/run/wrappers/bin/ping -c 1 8.8.8.8; exit 1")' --allow-new-privileges builder for ‘/nix/store/j0nd8kv85hd6r4kxgnwzvr0k65ykf6fv-foo.drv’ failed with exit code 1; last 6 log lines: PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=15.2 ms Fixes #1429.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Also simplify the Hash API. Fixes #1437.
-
- Jul 03, 2017
-
-
Eelco Dolstra authored
Fixes #824.
-
Eelco Dolstra authored
Functions like copyClosure() had 3 bool arguments, which creates a severe risk of mixing up arguments. Also, implement copyClosure() using copyPaths().
-
Eelco Dolstra authored
-
- Jun 24, 2017
-
-
Niklas Hambüchen authored
-
- Jun 20, 2017
-
-
David McFarland authored
Cygwin sqlite3 is patched to call SetDllDirectory("/usr/bin") on init, which affects the current process and is inherited by child processes. It causes DLLs to be loaded from /usr/bin/ before $PATH, which breaks all sorts of things. A typical failures would be header/lib version mismatches (e.g. openssl when running checkPhase on openssh). We'll just set it back to the default value. Note that this is a problem with the cygwin version of sqlite3 (currently 3.18.0). nixpkgs doesn't have the problematic patch.
-
Eelco Dolstra authored
There's no reason to restrict this to Error exceptions. This shouldn't matter to #1407 since the repl doesn't catch non-Error exceptions anyway, but you never know...
-