diff options
author | Artturin <Artturin@artturin.com> | 2023-07-28 17:06:35 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-07-28 17:41:01 +0300 |
commit | 3716ef19d837998c35cc102c80ad800d26517d7e (patch) | |
tree | d4377816f21ccb188d49e3cd446c36ce0cc36e9b /lib/customisation.nix | |
parent | cb13669b0049e795c3421987fe9367d82a0525b1 (diff) | |
download | nixpkgs-3716ef19d837998c35cc102c80ad800d26517d7e.tar nixpkgs-3716ef19d837998c35cc102c80ad800d26517d7e.tar.gz nixpkgs-3716ef19d837998c35cc102c80ad800d26517d7e.tar.bz2 nixpkgs-3716ef19d837998c35cc102c80ad800d26517d7e.tar.lz nixpkgs-3716ef19d837998c35cc102c80ad800d26517d7e.tar.xz nixpkgs-3716ef19d837998c35cc102c80ad800d26517d7e.tar.zst nixpkgs-3716ef19d837998c35cc102c80ad800d26517d7e.zip |
lib.makeScopeWithSplicing: provide default for keep,extra
These are often unneeded by the user.
Diffstat (limited to 'lib/customisation.nix')
-rw-r--r-- | lib/customisation.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix index a46913dc5bd..5c66169f215 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -279,7 +279,15 @@ rec { /* Like the above, but aims to support cross compilation. It's still ugly, but hopefully it helps a little bit. */ - makeScopeWithSplicing = { splicePackages, newScope }: { otherSplices, keep, extra, f }: + makeScopeWithSplicing = + { splicePackages + , newScope + }: + { otherSplices + , keep ? (_self: {}) + , extra ? (_spliced0: {}) + , f + }: let spliced0 = splicePackages { pkgsBuildBuild = otherSplices.selfBuildBuild; |