linux stdenv: Avoid assert false
On one hand, don't want to pass garbage that affects hash, on the other hand footguns are bad. Now, factored out the derivation so only need to pass in what is used.
This commit is contained in:
@@ -173,16 +173,7 @@ rec {
|
||||
bootstrapTools = "${build}/on-server/bootstrap-tools.tar.xz";
|
||||
};
|
||||
|
||||
bootstrapTools = (import ./default.nix {
|
||||
inherit system bootstrapFiles;
|
||||
|
||||
lib = assert false; null;
|
||||
allPackages = assert false; null;
|
||||
|
||||
platform = assert false; null;
|
||||
crossSystem = null;
|
||||
config = assert false; null;
|
||||
}).bootstrapTools;
|
||||
bootstrapTools = import ./bootstrap-tools { inherit system bootstrapFiles; };
|
||||
|
||||
test = derivation {
|
||||
name = "test-bootstrap-tools";
|
||||
|
||||
Reference in New Issue
Block a user