mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
Use ^
not !
in indexed store derivations installable syntax
Match the other syntax that was recently added
This commit is contained in:
parent
b18720ee17
commit
49ad315c03
5 changed files with 13 additions and 14 deletions
|
@ -4,11 +4,11 @@ enableFeatures "computed-derivations"
|
|||
restartDaemon
|
||||
|
||||
drv=$(nix eval -f multiple-outputs.nix --raw a.drvPath)
|
||||
if nix build "$drv!not-an-output" --json; then
|
||||
if nix build "$drv^not-an-output" --json; then
|
||||
fail "'not-an-output' should fail to build"
|
||||
fi
|
||||
|
||||
nix build "$drv!first" --json | jq --exit-status '
|
||||
nix build "$drv^first" --json | jq --exit-status '
|
||||
(.[0] |
|
||||
(.drvPath | match(".*multiple-outputs-a.drv")) and
|
||||
(.outputs |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue