summary refs log tree commit diff
path: root/lib/customisation.nix
diff options
context:
space:
mode:
authorSilvan Mosberger <github@infinisil.com>2023-07-28 23:04:09 +0200
committerGitHub <noreply@github.com>2023-07-28 23:04:09 +0200
commita0b8caf3bc21878b22411aaca1979ce60eeebace (patch)
treea84d8aca3a42347893ede50f2e49377fe6b88f67 /lib/customisation.nix
parent49b4b4e8725fa0791d3a3c40bd7ea15b5ce7ff8f (diff)
downloadnixpkgs-a0b8caf3bc21878b22411aaca1979ce60eeebace.tar
nixpkgs-a0b8caf3bc21878b22411aaca1979ce60eeebace.tar.gz
nixpkgs-a0b8caf3bc21878b22411aaca1979ce60eeebace.tar.bz2
nixpkgs-a0b8caf3bc21878b22411aaca1979ce60eeebace.tar.lz
nixpkgs-a0b8caf3bc21878b22411aaca1979ce60eeebace.tar.xz
nixpkgs-a0b8caf3bc21878b22411aaca1979ce60eeebace.tar.zst
nixpkgs-a0b8caf3bc21878b22411aaca1979ce60eeebace.zip
Revert "lib.customisation: uncurry makeScopeWithSplicing"
Diffstat (limited to 'lib/customisation.nix')
-rw-r--r--lib/customisation.nix22
1 files changed, 8 insertions, 14 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix
index 5c66169f215..a9281b1ab69 100644
--- a/lib/customisation.nix
+++ b/lib/customisation.nix
@@ -279,15 +279,7 @@ 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 ? (_self: {})
-    , extra ? (_spliced0: {})
-    , f
-    }:
+  makeScopeWithSplicing = splicePackages: newScope: otherSplices: keep: extra: f:
     let
       spliced0 = splicePackages {
         pkgsBuildBuild = otherSplices.selfBuildBuild;
@@ -303,11 +295,13 @@ rec {
         callPackage = newScope spliced; # == self.newScope {};
         # N.B. the other stages of the package set spliced in are *not*
         # overridden.
-        overrideScope = g: (makeScopeWithSplicing
-          { inherit splicePackages newScope; }
-          { inherit otherSplices keep extra;
-            f = lib.fixedPoints.extends g f;
-          });
+        overrideScope = g: makeScopeWithSplicing
+          splicePackages
+          newScope
+          otherSplices
+          keep
+          extra
+          (lib.fixedPoints.extends g f);
         packages = f;
       };
     in self;