···166 } ./hooks/qmake-hook.sh;
167 };
168169- # TODO(@Artturin): convert to makeScopeWithSplicing
170 # simple example of how to do that in 5568a4d25ca406809530420996d57e0876ca1a01
171 self = lib.makeScope newScope addPackages;
172in
···166 } ./hooks/qmake-hook.sh;
167 };
168169+ # TODO(@Artturin): convert to makeScopeWithSplicing'
170 # simple example of how to do that in 5568a4d25ca406809530420996d57e0876ca1a01
171 self = lib.makeScope newScope addPackages;
172in
···1{ stdenv, lib, stdenvNoCC
2-, makeScopeWithSplicing, generateSplicesForMkScope
3, buildPackages
4, bsdSetupHook, makeSetupHook, fetchcvs, groff, mandoc, byacc, flex
5, zlib
···26 else "no"}"
27 ];
2829-in makeScopeWithSplicing
30- (generateSplicesForMkScope "netbsd")
31- (_: {})
32- (_: {})
33- (self: let
34 inherit (self) mkDerivation;
35 in {
3637 # Why do we have splicing and yet do `nativeBuildInputs = with self; ...`?
38 #
39- # We use `makeScopeWithSplicing` because this should be used for all
40 # nested package sets which support cross, so the inner `callPackage` works
41 # correctly. But for the inline packages we don't bother to use
42 # `callPackage`.
···1011 # END MISCELLANEOUS
1012 #
10131014-})
0
···1{ stdenv, lib, stdenvNoCC
2+, makeScopeWithSplicing', generateSplicesForMkScope
3, buildPackages
4, bsdSetupHook, makeSetupHook, fetchcvs, groff, mandoc, byacc, flex
5, zlib
···26 else "no"}"
27 ];
2829+in makeScopeWithSplicing' {
30+ otherSplices = generateSplicesForMkScope "netbsd";
31+ f = (self: let
0032 inherit (self) mkDerivation;
33 in {
3435 # Why do we have splicing and yet do `nativeBuildInputs = with self; ...`?
36 #
37+ # We use `makeScopeWithSplicing'` because this should be used for all
38 # nested package sets which support cross, so the inner `callPackage` works
39 # correctly. But for the inline packages we don't bother to use
40 # `callPackage`.
···1009 # END MISCELLANEOUS
1010 #
10111012+});
1013+}
+5-9
pkgs/top-level/all-packages.nix
···24479 qt5 = recurseIntoAttrs (makeOverridable
24480 (import ../development/libraries/qt-5/5.15) {
24481 inherit (__splicedPackages)
24482- makeScopeWithSplicing generateSplicesForMkScope lib fetchurl fetchpatch fetchgit fetchFromGitHub makeSetupHook makeWrapper
24483 bison cups dconf harfbuzz libGL perl gtk3 python3
24484 darwin buildPackages;
24485 inherit (__splicedPackages.gst_all_1) gstreamer gst-plugins-base;
···27317 };
2731827319 xorg = let
27320- keep = _self: { };
27321- extra = _spliced0: { };
27322-27323 # Use `lib.callPackageWith __splicedPackages` rather than plain `callPackage`
27324 # so as not to have the newly bound xorg items already in scope, which would
27325 # have created a cycle.
···2733427335 generatedPackages = lib.callPackageWith __splicedPackages ../servers/x11/xorg/default.nix { };
2733627337- xorgPackages = makeScopeWithSplicing
27338- (generateSplicesForMkScope "xorg")
27339- keep
27340- extra
27341- (lib.extends overrides generatedPackages);
2734227343 in recurseIntoAttrs xorgPackages;
27344
···24479 qt5 = recurseIntoAttrs (makeOverridable
24480 (import ../development/libraries/qt-5/5.15) {
24481 inherit (__splicedPackages)
24482+ makeScopeWithSplicing' generateSplicesForMkScope lib fetchurl fetchpatch fetchgit fetchFromGitHub makeSetupHook makeWrapper
24483 bison cups dconf harfbuzz libGL perl gtk3 python3
24484 darwin buildPackages;
24485 inherit (__splicedPackages.gst_all_1) gstreamer gst-plugins-base;
···27317 };
2731827319 xorg = let
00027320 # Use `lib.callPackageWith __splicedPackages` rather than plain `callPackage`
27321 # so as not to have the newly bound xorg items already in scope, which would
27322 # have created a cycle.
···2733127332 generatedPackages = lib.callPackageWith __splicedPackages ../servers/x11/xorg/default.nix { };
2733327334+ xorgPackages = makeScopeWithSplicing' {
27335+ otherSplices = generateSplicesForMkScope "xorg";
27336+ f = lib.extends overrides generatedPackages;
27337+ };
02733827339 in recurseIntoAttrs xorgPackages;
27340
+7-3
pkgs/top-level/darwin-packages.nix
···1{ lib
2, buildPackages, pkgs, targetPackages
3-, generateSplicesForMkScope, makeScopeWithSplicing
4, stdenv
5, preLibcCrossHeaders
6, config
···15 (stdenv.targetPlatform.config + "-");
16in
1718-makeScopeWithSplicing (generateSplicesForMkScope "darwin") (_: {}) (spliced: spliced.apple_sdk.frameworks) (self: let
00019 inherit (self) mkDerivation callPackage;
2021 # Must use pkgs.callPackage to avoid infinite recursion.
···251252} // lib.optionalAttrs config.allowAliases {
253 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
254-})
0
···1{ lib
2, buildPackages, pkgs, targetPackages
3+, generateSplicesForMkScope, makeScopeWithSplicing'
4, stdenv
5, preLibcCrossHeaders
6, config
···15 (stdenv.targetPlatform.config + "-");
16in
1718+makeScopeWithSplicing' {
19+ otherSplices = generateSplicesForMkScope "darwin";
20+ extra = spliced: spliced.apple_sdk.frameworks;
21+ f = (self: let
22 inherit (self) mkDerivation callPackage;
2324 # Must use pkgs.callPackage to avoid infinite recursion.
···254255} // lib.optionalAttrs config.allowAliases {
256 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
257+});
258+}