1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-12 14:55:09 +02:00

* Add a test for importing derivations.

This commit is contained in:
Eelco Dolstra 2012-01-26 13:04:50 +00:00
parent 330df4b4db
commit 4c9fdd2cd6
3 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,12 @@
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)
[ "$(cat $outPath)" = FOO579 ]