splice.nix: add convenience functions #207652
Conversation
the file was a bit hard to read
pkgs/top-level/splice.nix
Outdated
There was a problem hiding this comment.
ideas for a better name?
There was a problem hiding this comment.
topSplices, topProjectedSplices or projectedSplices?
I'm not sure top really needs to be there.
Maybe even topSplicedScope.
There was a problem hiding this comment.
renamed to generateSplicesForMkScope
FRidh
left a comment
There was a problem hiding this comment.
Maybe use a single parameter name for all these steamPackagesAttr, pythonAttr, ... such as selfAttr?
Also, some spliced packages don't expose this attribute. That means it is not possible to add a variant through overriding as the overridden version will use the attribute corresponding to the original variant.
|
could you document what you add? And if you document makeScopeWithSplicing at the same time it would be wonderful. |
afa3edb to
250170b
Compare
250170b to
58fa780
Compare
|
I just lost some time because this broke on a dot in an attribute name. Yes, that is a preverse edge case, but |
|
e7ea78e this commit (part of an not yet merged PR) make it take a list too |
Replaces #105374
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes