blob: fc37e40f42103b8a858a47534211da077b4294bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
source common.sh
drvs=$($nixinstantiate fixed.nix -A good)
echo $drvs
$nixstore -r $drvs
drvs=$($nixinstantiate fixed.nix -A good2)
echo $drvs
$nixstore -r $drvs
drvs=$($nixinstantiate fixed.nix -A bad)
echo $drvs
if $nixstore -r $drvs; then false; fi
if $nixinstantiate fixed.nix -A reallyBad; then false; fi
# While we're at it, check attribute selection a bit more.
test $($nixinstantiate fixed.nix -A good.1 | wc -l) = 1
|