···166166 } ./hooks/qmake-hook.sh;
167167 };
168168169169- # TODO(@Artturin): convert to makeScopeWithSplicing
169169+ # TODO(@Artturin): convert to makeScopeWithSplicing'
170170 # simple example of how to do that in 5568a4d25ca406809530420996d57e0876ca1a01
171171 self = lib.makeScope newScope addPackages;
172172in
···11{ stdenv, lib, stdenvNoCC
22-, makeScopeWithSplicing, generateSplicesForMkScope
22+, makeScopeWithSplicing', generateSplicesForMkScope
33, buildPackages
44, bsdSetupHook, makeSetupHook, fetchcvs, groff, mandoc, byacc, flex
55, zlib
···2626 else "no"}"
2727 ];
28282929-in makeScopeWithSplicing
3030- (generateSplicesForMkScope "netbsd")
3131- (_: {})
3232- (_: {})
3333- (self: let
2929+in makeScopeWithSplicing' {
3030+ otherSplices = generateSplicesForMkScope "netbsd";
3131+ f = (self: let
3432 inherit (self) mkDerivation;
3533 in {
36343735 # Why do we have splicing and yet do `nativeBuildInputs = with self; ...`?
3836 #
3939- # We use `makeScopeWithSplicing` because this should be used for all
3737+ # We use `makeScopeWithSplicing'` because this should be used for all
4038 # nested package sets which support cross, so the inner `callPackage` works
4139 # correctly. But for the inline packages we don't bother to use
4240 # `callPackage`.
···10111009 # END MISCELLANEOUS
10121010 #
1013101110141014-})
10121012+});
10131013+}
+5-9
pkgs/top-level/all-packages.nix
···2447924479 qt5 = recurseIntoAttrs (makeOverridable
2448024480 (import ../development/libraries/qt-5/5.15) {
2448124481 inherit (__splicedPackages)
2448224482- makeScopeWithSplicing generateSplicesForMkScope lib fetchurl fetchpatch fetchgit fetchFromGitHub makeSetupHook makeWrapper
2448224482+ makeScopeWithSplicing' generateSplicesForMkScope lib fetchurl fetchpatch fetchgit fetchFromGitHub makeSetupHook makeWrapper
2448324483 bison cups dconf harfbuzz libGL perl gtk3 python3
2448424484 darwin buildPackages;
2448524485 inherit (__splicedPackages.gst_all_1) gstreamer gst-plugins-base;
···2731727317 };
27318273182731927319 xorg = let
2732027320- keep = _self: { };
2732127321- extra = _spliced0: { };
2732227322-2732327320 # Use `lib.callPackageWith __splicedPackages` rather than plain `callPackage`
2732427321 # so as not to have the newly bound xorg items already in scope, which would
2732527322 # have created a cycle.
···27334273312733527332 generatedPackages = lib.callPackageWith __splicedPackages ../servers/x11/xorg/default.nix { };
27336273332733727337- xorgPackages = makeScopeWithSplicing
2733827338- (generateSplicesForMkScope "xorg")
2733927339- keep
2734027340- extra
2734127341- (lib.extends overrides generatedPackages);
2733427334+ xorgPackages = makeScopeWithSplicing' {
2733527335+ otherSplices = generateSplicesForMkScope "xorg";
2733627336+ f = lib.extends overrides generatedPackages;
2733727337+ };
27342273382734327339 in recurseIntoAttrs xorgPackages;
2734427340
+7-3
pkgs/top-level/darwin-packages.nix
···11{ lib
22, buildPackages, pkgs, targetPackages
33-, generateSplicesForMkScope, makeScopeWithSplicing
33+, generateSplicesForMkScope, makeScopeWithSplicing'
44, stdenv
55, preLibcCrossHeaders
66, config
···1515 (stdenv.targetPlatform.config + "-");
1616in
17171818-makeScopeWithSplicing (generateSplicesForMkScope "darwin") (_: {}) (spliced: spliced.apple_sdk.frameworks) (self: let
1818+makeScopeWithSplicing' {
1919+ otherSplices = generateSplicesForMkScope "darwin";
2020+ extra = spliced: spliced.apple_sdk.frameworks;
2121+ f = (self: let
1922 inherit (self) mkDerivation callPackage;
20232124 # Must use pkgs.callPackage to avoid infinite recursion.
···251254252255} // lib.optionalAttrs config.allowAliases {
253256 builder = throw "'darwin.builder' has been changed and renamed to 'darwin.linux-builder'. The default ssh port is now 31022. Please update your configuration or override the port back to 22. See https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder"; # added 2023-07-06
254254-})
257257+});
258258+}