aboutsummaryrefslogtreecommitdiff
path: root/tests/simple.sh
blob: a5435a53bda4b4727d79ba0fe50d0a844dc768a5 (plain)
1
2
3
4
5
6
7
8
9
10
storeExpr=$($TOP/src/nix-instantiate/nix-instantiate simple.nix)

echo "store expr is $storeExpr"

outPath=$($TOP/src/nix-store/nix-store -rvv "$storeExpr")

echo "output path is $outPath"

text=$(cat "$outPath"/hello)
if test "$text" != "Hello World!"; then exit 1; fi