2012-01-26 13:04:50 +00: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-11 23:14:15 +00:00
|
|
|
outPath=$(nix-build ./import-derivation.nix --no-out-link)
|
2012-01-26 13:04:50 +00:00
|
|
|
|
|
|
|
[ "$(cat $outPath)" = FOO579 ]
|