2012-01-26 14:04:50 +01:00
|
|
|
source common.sh
|
|
|
|
|
|
|
|
clearStore
|
|
|
|
|
|
|
|
if nix-instantiate --readonly-mode ./import-derivation.nix; then
|
|
|
|
echo "read-only evaluation of an imported derivation unexpectedly failed"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2012-09-12 01:14:15 +02:00
|
|
|
outPath=$(nix-build ./import-derivation.nix --no-out-link)
|
2012-01-26 14:04:50 +01:00
|
|
|
|
|
|
|
[ "$(cat $outPath)" = FOO579 ]
|