mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-18 16:17:18 +02:00
16 lines
279 B
Bash
16 lines
279 B
Bash
![]() |
source common.sh
|
||
|
|
||
|
echo "Testing multiple outputs..."
|
||
|
|
||
|
drvPath=$($nixinstantiate multiple-outputs.nix)
|
||
|
|
||
|
echo "derivation is $drvPath"
|
||
|
|
||
|
outPath=$($nixstore -rvv "$drvPath")
|
||
|
|
||
|
echo "output path is $outPath"
|
||
|
|
||
|
text=$(cat "$outPath"/file)
|
||
|
if test "$text" != "success"; then exit 1; fi
|
||
|
|