aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/import-derivation.sh
blob: 98d61ef49b9c686c0640a157b72b9f2cc56bdb44 (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 --no-out-link)

[ "$(cat $outPath)" = FOO579 ]