minimal-bootstrap: remove imports from outside bootstrap
This commit is contained in:
@@ -2,13 +2,15 @@
|
||||
, config
|
||||
, buildPlatform
|
||||
, hostPlatform
|
||||
, fetchurl
|
||||
, checkMeta
|
||||
}:
|
||||
|
||||
lib.makeScope
|
||||
# Prevent using top-level attrs to protect against introducing dependency on
|
||||
# non-bootstrap packages by mistake. Any top-level inputs must be explicitly
|
||||
# declared here.
|
||||
(extra: lib.callPackageWith ({ inherit lib config buildPlatform hostPlatform; } // extra))
|
||||
(extra: lib.callPackageWith ({ inherit lib config buildPlatform hostPlatform fetchurl checkMeta; } // extra))
|
||||
(self: with self; {
|
||||
|
||||
bash_2_05 = callPackage ./bash/2.nix { tinycc = tinycc-mes; };
|
||||
@@ -41,7 +43,7 @@ lib.makeScope
|
||||
tinycc-bootstrappable = callPackage ./tinycc/bootstrappable.nix { };
|
||||
tinycc-mes = callPackage ./tinycc/mes.nix { };
|
||||
|
||||
inherit (callPackage ./utils.nix { }) fetchurl derivationWithMeta writeTextFile writeText;
|
||||
inherit (callPackage ./utils.nix { }) derivationWithMeta writeTextFile writeText;
|
||||
|
||||
test = kaem.runCommand "minimal-bootstrap-test" {} ''
|
||||
echo ${bash_2_05.tests.get-version}
|
||||
|
||||
@@ -3,16 +3,9 @@
|
||||
, callPackage
|
||||
, kaem
|
||||
, mescc-tools-extra
|
||||
, checkMeta
|
||||
}:
|
||||
|
||||
let
|
||||
checkMeta = callPackage ../../../stdenv/generic/check-meta.nix { };
|
||||
in
|
||||
rec {
|
||||
fetchurl = import ../../../build-support/fetchurl/boot.nix {
|
||||
inherit (buildPlatform) system;
|
||||
};
|
||||
|
||||
derivationWithMeta = attrs:
|
||||
let
|
||||
passthru = attrs.passthru or {};
|
||||
|
||||
@@ -27147,6 +27147,10 @@ with pkgs;
|
||||
minimal-bootstrap = recurseIntoAttrs (import ../os-specific/linux/minimal-bootstrap {
|
||||
inherit (stdenv) buildPlatform hostPlatform;
|
||||
inherit lib config;
|
||||
fetchurl = import ../build-support/fetchurl/boot.nix {
|
||||
inherit (stdenv.buildPlatform) system;
|
||||
};
|
||||
checkMeta = callPackage ../stdenv/generic/check-meta.nix { };
|
||||
});
|
||||
|
||||
mingetty = callPackage ../os-specific/linux/mingetty { };
|
||||
|
||||
Reference in New Issue
Block a user