-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New "indexed" installable syntax:
<drvPath>!<outputName>
Being conservative and only doing a single output name for now.
- Loading branch information
1 parent
4bf3eb2
commit 8499f32
Showing
5 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
source common.sh | ||
|
||
drv=$(nix eval -f multiple-outputs.nix --raw a.drvPath) | ||
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 ' | ||
(.[0] | | ||
(.drvPath | match(".*multiple-outputs-a.drv")) and | ||
(.outputs | | ||
.first and | ||
(has("second") | not))) | ||
' | ||
# TODO use | ||
# (.first | match(".*multiple-outputs-a-first")) and | ||
# once we make it put the result paths in the buildables. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters