2006-03-01 14:15:33 +02:00
|
|
|
source common.sh
|
|
|
|
|
2005-01-25 19:08:52 +02:00
|
|
|
pullCache () {
|
|
|
|
echo "pulling cache..."
|
2012-07-27 01:28:12 +03:00
|
|
|
nix-pull file://$TEST_ROOT/cache/MANIFEST
|
2005-01-25 19:08:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
clearStore
|
2007-08-13 16:15:02 +03:00
|
|
|
clearManifests
|
2005-01-25 19:08:52 +02:00
|
|
|
pullCache
|
|
|
|
|
2011-10-11 00:32:34 +03:00
|
|
|
drvPath=$(nix-instantiate dependencies.nix)
|
|
|
|
outPath=$(nix-store -q $drvPath)
|
2005-01-25 19:08:52 +02:00
|
|
|
|
|
|
|
echo "building $outPath using substitutes..."
|
2011-10-11 00:32:34 +03:00
|
|
|
nix-store -r $outPath
|
2005-01-25 19:08:52 +02:00
|
|
|
|
|
|
|
cat $outPath/input-2/bar
|
|
|
|
|
|
|
|
clearStore
|
2007-08-13 16:15:02 +03:00
|
|
|
clearManifests
|
2005-01-25 19:08:52 +02:00
|
|
|
pullCache
|
|
|
|
|
|
|
|
echo "building $drvPath using substitutes..."
|
2011-10-11 00:32:34 +03:00
|
|
|
nix-store -r $drvPath
|
2005-01-25 19:08:52 +02:00
|
|
|
|
|
|
|
cat $outPath/input-2/bar
|
2005-02-09 14:57:13 +02:00
|
|
|
|
|
|
|
# Check that the derivers are set properly.
|
2011-10-11 00:32:34 +03:00
|
|
|
test $(nix-store -q --deriver "$outPath") = "$drvPath"
|
2012-09-12 18:29:10 +03:00
|
|
|
nix-store -q --deriver $(readLink $outPath/input-2) | grep -q -- "-input-2.drv"
|
2006-03-01 15:49:12 +02:00
|
|
|
|
2007-08-13 16:15:02 +03:00
|
|
|
clearManifests
|