about summary refs log blame commit diff
path: root/tests/import-derivation.sh
blob: 98d61ef49b9c686c0640a157b72b9f2cc56bdb44 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                             
                                                          
                              
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 ]