mirror of
https://github.com/NixOS/nix
synced 2025-07-09 03:43:54 +02:00
* Propagate the deriver of a path through the substitute mechanism.
* Removed some dead code (successor stuff) from nix-push. * Updated terminology in the tests (store expr -> drv path). * Check that the deriver is set properly in the tests.
This commit is contained in:
parent
582e01c06f
commit
98df735b51
18 changed files with 86 additions and 74 deletions
|
@ -1,5 +1,5 @@
|
|||
storeExpr=$($TOP/src/nix-instantiate/nix-instantiate dependencies.nix)
|
||||
outPath=$($TOP/src/nix-store/nix-store -rvv "$storeExpr")
|
||||
drvPath=$($TOP/src/nix-instantiate/nix-instantiate dependencies.nix)
|
||||
outPath=$($TOP/src/nix-store/nix-store -rvv "$drvPath")
|
||||
|
||||
# Set a GC root.
|
||||
ln -s $outPath "$NIX_STATE_DIR"/gcroots/foo
|
||||
|
@ -11,4 +11,4 @@ cat $outPath/foobar
|
|||
cat $outPath/input-2/bar
|
||||
|
||||
# Check that the derivation has been GC'd.
|
||||
if cat $storeExpr > /dev/null; then false; fi
|
||||
if cat $drvPath > /dev/null; then false; fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue