mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
15 lines
312 B
Bash
Executable File
15 lines
312 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
source common.sh
|
|
|
|
clearStoreIfPossible
|
|
|
|
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 ]
|