aboutsummaryrefslogtreecommitdiff
path: root/tests/import-derivation.sh
blob: 93a53a830af8b93e0947feea0fbd8e772053b74c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 ]