mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
13 lines
265 B
Bash
13 lines
265 B
Bash
|
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 ]
|