1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 02:21:16 +02:00
nix/tests/functional/import-from-derivation.sh
2024-09-17 16:56:40 +02:00

14 lines
322 B
Bash
Executable file

#!/usr/bin/env bash
source common.sh
clearStoreIfPossible
if nix-instantiate --readonly-mode ./import-from-derivation.nix; then
echo "read-only evaluation of an imported derivation unexpectedly failed"
exit 1
fi
outPath=$(nix-build ./import-from-derivation.nix --no-out-link)
[ "$(cat "$outPath")" = FOO579 ]