From 3716ef19d837998c35cc102c80ad800d26517d7e Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 28 Jul 2023 17:06:35 +0300 Subject: lib.makeScopeWithSplicing: provide default for keep,extra These are often unneeded by the user. --- lib/customisation.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/customisation.nix') diff --git a/lib/customisation.nix b/lib/customisation.nix index a46913dc5bde7..5c66169f215f6 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; -- cgit 1.4.1