aboutsummaryrefslogtreecommitdiff
path: root/tests/simple.sh
blob: 225e7c52249867746ae70d99af8c11493c0a496b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
source common.sh

drvPath=$($nixinstantiate simple.nix)

echo "derivation is $drvPath"

outPath=$($nixstore -rvv "$drvPath")

echo "output path is $outPath"

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