Prevent an unnecessary evaluation of lib

This commit is contained in:
Eelco Dolstra
2014-08-09 12:45:18 +02:00
parent cd948c093f
commit be3fc3ae2f
4 changed files with 8 additions and 10 deletions
+1 -3
View File
@@ -7,12 +7,10 @@
# The function defaults are for easy testing.
{ system ? builtins.currentSystem
, allPackages ? import ../../top-level/all-packages.nix
, platform ? null, config ? {} }:
, platform ? null, config ? {}, lib }:
rec {
lib = import ../../../lib;
bootstrapFiles =
if system == "i686-linux" then import ./bootstrap/i686.nix
else if system == "x86_64-linux" then import ./bootstrap/x86_64.nix