mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 09:06:15 +02:00
10f864c5ae
This is good for shebang, and also good for future build system simplifications
14 lines
300 B
Bash
Executable file
14 lines
300 B
Bash
Executable file
#!/usr/bin/env 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 ]
|