mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
15 lines
279 B
Bash
15 lines
279 B
Bash
source common.sh
|
|
|
|
echo "Testing multiple outputs..."
|
|
|
|
drvPath=$(nix-instantiate multiple-outputs.nix)
|
|
|
|
echo "derivation is $drvPath"
|
|
|
|
outPath=$(nix-store -rvv "$drvPath")
|
|
|
|
echo "output path is $outPath"
|
|
|
|
text=$(cat "$outPath"/file)
|
|
if test "$text" != "success"; then exit 1; fi
|
|
|