Merge pull request #233391 from emilytrau/minimal-imports

minimal-bootstrap: remove imports from outside bootstrap

authored by John Ericson and committed by GitHub 55358b47 240d8405

+9 -11
+4 -2
pkgs/os-specific/linux/minimal-bootstrap/default.nix
··· 2 2 , config 3 3 , buildPlatform 4 4 , hostPlatform 5 + , fetchurl 6 + , checkMeta 5 7 }: 6 8 7 9 lib.makeScope 8 10 # Prevent using top-level attrs to protect against introducing dependency on 9 11 # non-bootstrap packages by mistake. Any top-level inputs must be explicitly 10 12 # declared here. 11 - (extra: lib.callPackageWith ({ inherit lib config buildPlatform hostPlatform; } // extra)) 13 + (extra: lib.callPackageWith ({ inherit lib config buildPlatform hostPlatform fetchurl checkMeta; } // extra)) 12 14 (self: with self; { 13 15 14 16 bash_2_05 = callPackage ./bash/2.nix { tinycc = tinycc-mes; }; ··· 61 63 tinycc-bootstrappable = lib.recurseIntoAttrs (callPackage ./tinycc/bootstrappable.nix { }); 62 64 tinycc-mes = lib.recurseIntoAttrs (callPackage ./tinycc/mes.nix { }); 63 65 64 - inherit (callPackage ./utils.nix { }) fetchurl derivationWithMeta writeTextFile writeText; 66 + inherit (callPackage ./utils.nix { }) derivationWithMeta writeTextFile writeText; 65 67 66 68 test = kaem.runCommand "minimal-bootstrap-test" {} '' 67 69 echo ${bash_2_05.tests.get-version}
-1
pkgs/os-specific/linux/minimal-bootstrap/mes/default.nix
··· 1 1 { lib 2 2 , fetchurl 3 - , writeText 4 3 , callPackage 5 4 , kaem 6 5 , m2libc
+1 -8
pkgs/os-specific/linux/minimal-bootstrap/utils.nix
··· 3 3 , callPackage 4 4 , kaem 5 5 , mescc-tools-extra 6 + , checkMeta 6 7 }: 7 - 8 - let 9 - checkMeta = callPackage ../../../stdenv/generic/check-meta.nix { }; 10 - in 11 8 rec { 12 - fetchurl = import ../../../build-support/fetchurl/boot.nix { 13 - inherit (buildPlatform) system; 14 - }; 15 - 16 9 derivationWithMeta = attrs: 17 10 let 18 11 passthru = attrs.passthru or {};
+4
pkgs/top-level/all-packages.nix
··· 27214 27214 minimal-bootstrap = recurseIntoAttrs (import ../os-specific/linux/minimal-bootstrap { 27215 27215 inherit (stdenv) buildPlatform hostPlatform; 27216 27216 inherit lib config; 27217 + fetchurl = import ../build-support/fetchurl/boot.nix { 27218 + inherit (stdenv.buildPlatform) system; 27219 + }; 27220 + checkMeta = callPackage ../stdenv/generic/check-meta.nix { }; 27217 27221 }); 27218 27222 27219 27223 mingetty = callPackage ../os-specific/linux/mingetty { };