mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
New "indexed" installable syntax: <drvPath>!<outputName>
Being conservative and only doing a single output name for now.
This commit is contained in:
parent
4bf3eb27e6
commit
8499f32fb2
5 changed files with 72 additions and 3 deletions
|
@ -4,8 +4,9 @@ expectedJSONRegex='\[\{"drvPath":".*multiple-outputs-a.drv","outputs":\{"first":
|
|||
nix build -f multiple-outputs.nix --json a.all b.all | jq --exit-status '
|
||||
(.[0] |
|
||||
(.drvPath | match(".*multiple-outputs-a.drv")) and
|
||||
(.outputs.first | match(".*multiple-outputs-a-first")) and
|
||||
(.outputs.second | match(".*multiple-outputs-a-second")))
|
||||
(.outputs |
|
||||
(.first | match(".*multiple-outputs-a-first")) and
|
||||
(.second | match(".*multiple-outputs-a-second"))))
|
||||
and (.[1] |
|
||||
(.drvPath | match(".*multiple-outputs-b.drv")) and
|
||||
(.outputs.out | match(".*multiple-outputs-b")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue