0
0
Fork 0
forked from lix-project/lix
lix/tests/import-derivation.sh

13 lines
279 B
Bash
Raw Normal View History

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
outPath=$(nix-build ./import-derivation.nix --no-out-link)
[ "$(cat $outPath)" = FOO579 ]