aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-02-26Remove unused functionEelco Dolstra
2014-02-26Test nix-env --switch-generationEelco Dolstra
2014-02-26Test nix-env --setEelco Dolstra
2014-02-26Test the -b and -s flags of nix-store -qEelco Dolstra
2014-02-26Test ~/.nix-defexprEelco Dolstra
2014-02-26Test nix-store --switch-profile and more daemon actionsEelco Dolstra
2014-02-26Test nix-store -q --rootsEelco Dolstra
2014-02-26Test nix-store -lEelco Dolstra
2014-02-26Test nix-store --optimiseEelco Dolstra
2014-02-26Add a test for nix-store --dump-db / --load-dbEelco Dolstra
2014-02-26Installer: Handle DarwinEelco Dolstra
"cp -r" doesn't copy symlinks properly on Darwin, but "cp -R" does. Fixes #215.
2014-02-26nix-store -r: Respect --add-root for non-derivationsEelco Dolstra
Fixes #68. Fixes #117.
2014-02-26Also provide an option for setting the curl connection timeoutEelco Dolstra
2014-02-26Respect $NIX_CONNECT_TIMEOUT properlyEelco Dolstra
We were 1) using CURLOPT_TIMEOUT instead of CURLOPT_CONNECTTIMEOUT; 2) not passing it to the curl child process. Issue #93.
2014-02-26Add ~/.nix-profile/sbin to $PATHEelco Dolstra
Fixes #112.
2014-02-26Warn about missing -I pathsEelco Dolstra
Fixes #121. Note that we don't warn about missing $NIX_PATH entries because it's intended that some may be missing (cf. the default $NIX_PATH on NixOS, which includes paths like /etc/nixos/nixpkgs for backward compatibility).
2014-02-26Document dynamic attributesShea Levy
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-02-26Simplify getting use-ssh-substituter from untrusted usersEelco Dolstra
2014-02-26Fix broken patchEelco Dolstra
2014-02-26use USER environmental variable if getting user id by getpwuid is failed in ↵Ian-Woo Kim
perl scripts: download-from-binary-cache.pl and nix-channel
2014-02-26Only start download-via-ssh if it's enabledEelco Dolstra
2014-02-26Add use-ssh-substituter setting.Shea Levy
It defaults to false and can be overridden by RemoteStore. Untested currently, just quickly put this together
2014-02-19nix-shell: Add --packages flagEelco Dolstra
This allows you to easily set up a build environment containing the specified packages from Nixpkgs. For example: $ nix-shell -p sqlite xorg.libX11 hello will start a shell in which the given packages are present.
2014-02-19nix-instantiate: Allow --dry-run as a synonym for --readonly-modeEelco Dolstra
--dry-run is more consistent with nix-env and nix-store.
2014-02-19nix-instantiate: Rename --eval-only to --eval, --parse-only to --parseEelco Dolstra
2014-02-19nix-instantiate: Add a flag --expr / -E to read expressions from the command ↵Eelco Dolstra
line This is basically a shortcut for ‘echo 'expr...' | nix-instantiate -’. Also supported by nix-build and nix-shell.
2014-02-19Move manpages aroundEelco Dolstra
2014-02-19nix-shell: Don't leave a temporary directory in /tmp behindEelco Dolstra
2014-02-18lexer-tab.o and parser-tab.o require each other's headersShea Levy
2014-02-18Update ignoresShea Levy
2014-02-18Slight simplificationEelco Dolstra
2014-02-18Add a flag ‘--check’ to verify build determinismEelco Dolstra
The flag ‘--check’ to ‘nix-store -r’ or ‘nix-build’ will cause Nix to redo the build of a derivation whose output paths are already valid. If the new output differs from the original output, an error is printed. This makes it easier to test if a build is deterministic. (Obviously this cannot catch all sources of non-determinism, but it catches the most common one, namely the current time.) For example: $ nix-build '<nixpkgs>' -A patchelf ... $ nix-build '<nixpkgs>' -A patchelf --check error: derivation `/nix/store/1ipvxsdnbhl1rw6siz6x92s7sc8nwkkb-patchelf-0.6' may not be deterministic: hash mismatch in output `/nix/store/4pc1dmw5xkwmc6q3gdc9i5nbjl4dkjpp-patchelf-0.6.drv' The --check build fails if not all outputs are valid. Thus the first call to nix-build is necessary to ensure that all outputs are valid. The current outputs are left untouched: the new outputs are either put in a chroot or diverted to a different location in the store using hash rewriting.
2014-02-17Test nix-store --verify-path and --repair-pathEelco Dolstra
2014-02-17Don't build on Debian 6.0Eelco Dolstra
Its linker is too old to understand --no-copy-dt-needed-entries. http://hydra.nixos.org/build/9113883
2014-02-17Make --repair work on DarwinEelco Dolstra
Mac OS X doesn't allow renaming a read-only directory. http://hydra.nixos.org/build/9113895
2014-02-17RefactoringEelco Dolstra
2014-02-17When using a build hook, only copy missing pathsEelco Dolstra
2014-02-17Move some code aroundEelco Dolstra
In particular, do replacing of valid paths during repair later. This prevents us from replacing a valid path after the build fails.
2014-02-17nix-store --gc --max-freed: Support a unit specifierEelco Dolstra
E.g. "--max-freed 10G" means "free ten gigabytes".
2014-02-17Heuristically detect if a build may have failed due to a full diskEelco Dolstra
This will allow Hydra to detect that a build should not be marked as "permanently failed", allowing it to be retried later.
2014-02-17nix-shell: Execute shellHook if it existsEelco Dolstra
Since normal builds don't execute shellHook, this allows nix-shell specific customisation. Suggested by Domen.
2014-02-17Add a test for repairing pathsEelco Dolstra
2014-02-14download-via-ssh: Use readStorePathEelco Dolstra
2014-02-14download-via-ssh: Show where we're downloading fromEelco Dolstra
2014-02-14Minor style fixesEelco Dolstra
2014-02-14Merge remote-tracking branch 'shlevy/ssh-substituter'Eelco Dolstra
2014-02-12Indendation fixShea Levy
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-02-12Remove relic of old codeShea Levy
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-02-12error messages start in lowercaseShea Levy
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-02-12Remove using declarations from download-via-sshShea Levy
Signed-off-by: Shea Levy <shea@shealevy.com>