2006-03-01 07:15:33 -05:00
|
|
|
source common.sh
|
|
|
|
|
2005-01-25 12:08:52 -05:00
|
|
|
pullCache () {
|
|
|
|
echo "pulling cache..."
|
2007-09-04 11:38:09 -04:00
|
|
|
$NIX_BIN_DIR/nix-pull file://$TEST_ROOT/manifest
|
2005-01-25 12:08:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
clearStore
|
2007-08-13 09:15:02 -04:00
|
|
|
clearManifests
|
2005-01-25 12:08:52 -05:00
|
|
|
pullCache
|
|
|
|
|
2006-03-01 07:51:18 -05:00
|
|
|
drvPath=$($nixinstantiate dependencies.nix)
|
|
|
|
outPath=$($nixstore -q $drvPath)
|
2005-01-25 12:08:52 -05:00
|
|
|
|
|
|
|
echo "building $outPath using substitutes..."
|
2006-03-01 07:51:18 -05:00
|
|
|
$nixstore -r $outPath
|
2005-01-25 12:08:52 -05:00
|
|
|
|
|
|
|
cat $outPath/input-2/bar
|
|
|
|
|
|
|
|
clearStore
|
2007-08-13 09:15:02 -04:00
|
|
|
clearManifests
|
2005-01-25 12:08:52 -05:00
|
|
|
pullCache
|
|
|
|
|
|
|
|
echo "building $drvPath using substitutes..."
|
2006-03-01 07:51:18 -05:00
|
|
|
$nixstore -r $drvPath
|
2005-01-25 12:08:52 -05:00
|
|
|
|
|
|
|
cat $outPath/input-2/bar
|
2005-02-09 07:57:13 -05:00
|
|
|
|
|
|
|
# Check that the derivers are set properly.
|
2006-03-01 07:51:18 -05:00
|
|
|
test $($nixstore -q --deriver "$outPath") = "$drvPath"
|
2006-03-01 09:26:03 -05:00
|
|
|
$nixstore -q --deriver $(readLink $outPath/input-2) | grep -q -- "-input-2.drv"
|
2006-03-01 08:49:12 -05:00
|
|
|
|
2007-08-13 09:15:02 -04:00
|
|
|
clearManifests
|