about summary refs log tree commit diff
path: root/tests/fixed.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-02-03 Remove nix-build --hashEelco Dolstra1-3/+10
Instead, if a fixed-output derivation produces has an incorrect output hash, we now unconditionally move the outputs to the path corresponding with the actual hash and register it as valid. Thus, after correcting the hash in the Nix expression (e.g. in a fetchurl call), the fixed-output derivation doesn't have to be built again. It would still be good to have a command for reporting the actual hash of a fixed-output derivation (instead of throwing an error), but "nix-build --hash" didn't do that.
2015-11-04 Support SHA-512 hashesEelco Dolstra1-6/+3
Fixes #679. Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s versus 131 MB/s).
2012-09-11 Don't put results symlinks in the tests directoryEelco Dolstra1-5/+5
2011-10-10 * Refactoring: remove unnecessary variables from the tests.Eelco Dolstra1-10/+10
2009-03-18 * Clean up some tests (use nix-build where appropriate).Eelco Dolstra1-17/+6
2008-12-03 * Unify the treatment of sources copied to the store, and recursiveEelco Dolstra1-0/+27
SHA-256 outputs of fixed-output derivations. I.e. they now produce the same store path: $ nix-store --add x /nix/store/j2fq9qxvvxgqymvpszhs773ncci45xsj-x $ nix-store --add-fixed --recursive sha256 x /nix/store/j2fq9qxvvxgqymvpszhs773ncci45xsj-x the latter being the same as the path that a derivation derivation { name = "x"; outputHashAlgo = "sha256"; outputHashMode = "recursive"; outputHash = "..."; ... }; produces. This does change the output path for such fixed-output derivations. Fortunately they are quite rare. The most common use is fetchsvn calls with SHA-256 hashes. (There are a handful of those is Nixpkgs, mostly unstable development packages.) * Documented the computation of store paths (in store-api.cc).
2007-09-11 * Test the impureEnvVars feature.Eelco Dolstra1-0/+3
2007-08-28 * Test case to show that parallel builds of different fixed-outputEelco Dolstra1-0/+15
derivations that produce the same output path don't work properly wrt locking. This happens a lot in the build farm when fetchurl derivations downloading the same file on different platforms are executed in parallel and then copied back to the main machine.
2006-03-01 * Tests for fixed-output derivations (and attribute selection, incidentally).Eelco Dolstra1-0/+18