mirror of
https://github.com/NixOS/nix.git
synced 2024-12-11 16:12:28 +00:00
13 lines
279 B
Bash
13 lines
279 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 --no-out-link)
|
|
|
|
[ "$(cat $outPath)" = FOO579 ]
|