Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-07-28 | nix-prefetch-url: Fix regression in hash printing | Eelco Dolstra | |
2017-07-27 | builtins.fetchgit: Support specifying commit hashes | Eelco Dolstra | |
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"; }; | |||
2017-07-27 | builtins.fetchgit: Respect tarball-ttl | Eelco Dolstra | |
I.e. if the local ref is more recent than tarball-ttl seconds, then don't check the remote. | |||
2017-07-27 | builtins.fetchgit: Use proper refs locally | Eelco Dolstra | |
2017-07-27 | builtins.fetchgit: Cache hash -> store path mappings | Eelco Dolstra | |
This prevents an expensive call to addToStore() in the cached case. | |||
2017-07-26 | nix search: Add a cache | Eelco Dolstra | |
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 | |||
2017-07-26 | nix-build/nix-shell: Eliminate call to nix-instantiate / nix-store | Eelco Dolstra | |
Note that this removes the need for a derivation symlink, so the --drv-path and --add-drv-link flags now do nothing. | |||
2017-07-20 | nix-shell: Use bashInteractive from <nixpkgs> | Eelco Dolstra | |
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. | |||
2017-07-20 | nix search: Ignore top-level eval errors | Eelco Dolstra | |
$NIX_PATH may contain elements that don't evaluate to an attrset (like "nixos-config"), so ignore those. | |||
2017-07-20 | FD_SETSIZE check: BuildError -> Error | Eelco Dolstra | |
BuildError denotes a permanent build failure, which is not the case here. | |||
2017-07-20 | nix search: Add --json flag | Eelco Dolstra | |
2017-07-20 | Add "nix search" command | Eelco Dolstra | |
2017-07-19 | Merge pull request #1471 from veprbl/fdsetsize | Eelco Dolstra | |
Do not try to fill fd_set with fd>=FD_SETSIZE | |||
2017-07-18 | Do not try to fill fd_set with fd>=FD_SETSIZE | Dmitry Kalinkin | |
This is UB and causes buffer overflow and crash on linux. | |||
2017-07-18 | Merge pull request #1470 from grahamc/patch-1 | Domen Kožar | |
Update mailing list. | |||
2017-07-18 | Update mailing list. | Graham Christensen | |
2017-07-18 | Update the mailing list. | Graham Christensen | |
2017-07-17 | Always use base-16 for hashed mirror lookups | Eelco Dolstra | |
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. | |||
2017-07-17 | Make the hashes mirrors used by builtins.fetchurl configurable | Eelco Dolstra | |
In particular, this allows it to be disabled in our tests. | |||
2017-07-17 | Fix accidental printError | Eelco Dolstra | |
2017-07-16 | Merge pull request #1467 from alicebob/nomd5 | Domen Kožar | |
use sha256 hashes in the examples | |||
2017-07-15 | use sha256 hashes in the examples | Harmen | |
And fix a dead link. | |||
2017-07-14 | nix path-info: Show download sizes for binary cache stores | Eelco Dolstra | |
E.g. $ nix path-info --json --store https://cache.nixos.org nixpkgs.thunderbird -S ... "downloadHash": "sha256:1jlixpzi225wwa0f4xdrwrqgi47ip1qpj9p06fyxxg07sfmyi4q0", "downloadSize": 43047620, "closureDownloadSize": 84745960 } ] | |||
2017-07-14 | Avoid a call to derivationFromPath() | Eelco Dolstra | |
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. | |||
2017-07-14 | nix path-info: Don't barf on invalid paths | Eelco Dolstra | |
Now you get [ { "path": "/nix/store/fzvliz4j5xzvnd0w5zgw2l0ksqh578yk-bla", "valid": false } ] | |||
2017-07-14 | StorePathsCommand: Don't build installables | Eelco Dolstra | |
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. | |||
2017-07-14 | Merge pull request #1466 from grahamc/nix-master-darwin-install | Eelco Dolstra | |
Multi-user installer for Darwin (master edition) | |||
2017-07-14 | Rename PINCH_ME_IM_SILLY to ALLOW_PREEXISTING_INSTALLATION | Graham Christensen | |
2017-07-14 | If there is no TTY, also skip verbose sudo messages | Graham Christensen | |
2017-07-14 | Ensure PINCH_ME_IM_SILLY allows a /nix/store to stick around between builds | Graham Christensen | |
Also output in the status report that the user is very silly | |||
2017-07-14 | Assume yes if we have no TTY | Graham Christensen | |
Starve the TTY of input to ensure this works, but provide yes to the current installer to handle the current broken case. | |||
2017-07-14 | Cleanup and more specificity around set -e | Graham Christensen | |
2017-07-14 | Only clean if the file exists | Graham Christensen | |
2017-07-14 | Clean up nix hints from the old insstaller | Graham Christensen | |
2017-07-14 | Run nix-build inside a fresh bash login | Graham Christensen | |
2017-07-14 | chmod | Graham Christensen | |
2017-07-14 | Test the installer | Graham Christensen | |
2017-07-14 | Address feedback around printf & exec | Graham Christensen | |
2017-07-14 | Don't install a second nix after the initial installation, and the rsync ↵ | Graham Christensen | |
change fixes a bug hidden by the nix replacement where the store files were being owned by the installing user due to rsync's -a implying -og. | |||
2017-07-14 | Clean up issues around uninstall directions, and only show | Graham Christensen | |
relevant directions | |||
2017-07-14 | Prompt for sudo before validating assumptions, and check ourselves for ↵ | Graham Christensen | |
root-owned files instead of making a scary warning. | |||
2017-07-14 | multi-user install: move the profile in to the nix etc/profiles.d output | Graham Christensen | |
2017-07-14 | Switch to a fancy multi-user installer on Darwin | Graham Christensen | |
2017-07-14 | Shellcheck the existing installer | Graham Christensen | |
2017-07-14 | nix: Show help when no arguments are given | Eelco Dolstra | |
Fixes #1464. | |||
2017-07-14 | Tarball job: Include libseccomp on Linux only | Eelco Dolstra | |
2017-07-14 | Shut up a memory leak warning | Eelco Dolstra | |
2017-07-11 | replaceSymlink(): Handle the case where the temporary file already exists | Eelco Dolstra | |
Not really necessary anymore for #849, but still nice to have. | |||
2017-07-11 | fetchTarball: Prevent concurrent downloads of the same file | Eelco Dolstra | |
Fixes #849. | |||
2017-07-10 | Merge pull request #1422 from nh2/fix-potential-hash-comparison-crash | Eelco Dolstra | |
Fix potential crash/wrong result two hashes of unequal length are compared |