diff options
author | Artturi <Artturin@artturin.com> | 2023-11-04 23:00:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 23:00:22 +0200 |
commit | feaa219f3988126d4241055df129f322ae63dcdf (patch) | |
tree | 99106f855494451e612842c6771db7364c2c3d21 /lib | |
parent | 8ebe7fb0ffe981b4418665a61902626f2ba6ba81 (diff) | |
parent | dd48cb0b3479912a9c6adfaa7279dbadabaeae2b (diff) | |
download | nixpkgs-feaa219f3988126d4241055df129f322ae63dcdf.tar nixpkgs-feaa219f3988126d4241055df129f322ae63dcdf.tar.gz nixpkgs-feaa219f3988126d4241055df129f322ae63dcdf.tar.bz2 nixpkgs-feaa219f3988126d4241055df129f322ae63dcdf.tar.lz nixpkgs-feaa219f3988126d4241055df129f322ae63dcdf.tar.xz nixpkgs-feaa219f3988126d4241055df129f322ae63dcdf.tar.zst nixpkgs-feaa219f3988126d4241055df129f322ae63dcdf.zip |
Merge pull request #265045 from Artturin/addcomment1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/customisation.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix index 61bb531d2f6..c7d40339d05 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -343,7 +343,24 @@ rec { , newScope }: { otherSplices + # Attrs from `self` which won't be spliced. + # Avoid using keep, it's only used for a python hook workaround, added in PR #104201. + # ex: `keep = (self: { inherit (self) aAttr; })` , keep ? (_self: {}) + # Additional attrs to add to the sets `callPackage`. + # When the package is from a subset (but not a subset within a package IS #211340) + # within `spliced0` it will be spliced. + # When using an package outside the set but it's available from `pkgs`, use the package from `pkgs.__splicedPackages`. + # If the package is not available within the set or in `pkgs`, such as a package in a let binding, it will not be spliced + # ex: + # ``` + # nix-repl> darwin.apple_sdk.frameworks.CoreFoundation + # «derivation ...CoreFoundation-11.0.0.drv» + # nix-repl> darwin.CoreFoundation + # error: attribute 'CoreFoundation' missing + # nix-repl> darwin.callPackage ({ CoreFoundation }: CoreFoundation) { } + # «derivation ...CoreFoundation-11.0.0.drv» + # ``` , extra ? (_spliced0: {}) , f }: |