mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
* Test `nix-store -q --binding'.
This commit is contained in:
parent
ea9c35d3cc
commit
e3daee919d
2 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,7 @@ export xmlflags="@xmlflags@"
|
||||||
export xsltproc="@xsltproc@"
|
export xsltproc="@xsltproc@"
|
||||||
|
|
||||||
export version=@version@
|
export version=@version@
|
||||||
|
export system=@system@
|
||||||
|
|
||||||
export nixinstantiate=$TOP/src/nix-instantiate/nix-instantiate
|
export nixinstantiate=$TOP/src/nix-instantiate/nix-instantiate
|
||||||
export nixstore=$TOP/src/nix-store/nix-store
|
export nixstore=$TOP/src/nix-store/nix-store
|
||||||
|
|
|
@ -2,6 +2,8 @@ source common.sh
|
||||||
|
|
||||||
drvPath=$($nixinstantiate simple.nix)
|
drvPath=$($nixinstantiate simple.nix)
|
||||||
|
|
||||||
|
test "$($nixstore -q --binding system "$drvPath")" = "$system"
|
||||||
|
|
||||||
echo "derivation is $drvPath"
|
echo "derivation is $drvPath"
|
||||||
|
|
||||||
outPath=$($nixstore -rvv "$drvPath")
|
outPath=$($nixstore -rvv "$drvPath")
|
||||||
|
|
Loading…
Reference in a new issue