return result of all packages #26
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/flake-compat#26
Loading…
Reference in a new issue
No description provided.
Delete branch "support-packages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
in a flake I work on, I need to provide a compatibility layer for other packages than the default one, exposing result gives me the possibility. I dont mind if this gets closed, just wanted to share the possibility.
With this PR, one can use the following shell.nix to reference a specific package
This change does not seem to be needed, because both
defaultNix
andshellNix
are already based onresult
(only the value for thedefault
key is changed, anddefault
is not a standard name for a flake output, so a flake should not define it anyway; if you have a really nonstandard flake, you could still reach the originaldefault
value through.defaultNix.outputs.default
or.shellNix.outputs.default
).So you already should be able to use
.shellNix.packages.${system}.ci
in your code instead of the suggested.result.packages.${system}.ci
.BTW, a more direct way to refer to the default devshell in
shell.nix
would be using.shellNix.default
instead of just.shellNix
; omitting the.default
part results in Nix scanning the flake outputs and finding just a singledefault
derivation there, which seems to work at the moment, but might break if another derivation appears in some top-level attribute of the flake output for some reason.I think that's the part that confused me. Now that I read the code with more flake experience, seems like you are spot on. Closing, thanks for the review.
Pull request closed