From 78bb5f5f3775e220e5d4bbe30851dd7fec072bf8 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 25 Apr 2017 19:54:25 -0400 Subject: [PATCH] linux cross stdenv: Pull platforms from lib to cut eval time --- pkgs/stdenv/linux/make-bootstrap-tools-cross.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix b/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix index 613edfafd954..8b166fb5b49f 100644 --- a/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix +++ b/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix @@ -3,8 +3,8 @@ let buildFor = toolsArch: ( let + lib = import ../../../lib; pkgsFun = import ../../..; - pkgsNoParams = pkgsFun {}; sheevaplugCrossSystem = { crossSystem = rec { @@ -14,7 +14,7 @@ let float = "soft"; withTLS = true; libc = "glibc"; - platform = pkgsNoParams.platforms.sheevaplug; + platform = lib.systems.platforms.sheevaplug; openssl.system = "linux-generic32"; inherit (platform) gcc; }; @@ -29,7 +29,7 @@ let fpu = "vfp"; withTLS = true; libc = "glibc"; - platform = pkgsNoParams.platforms.raspberrypi; + platform = lib.systems.platforms.raspberrypi; openssl.system = "linux-generic32"; inherit (platform) gcc; }; @@ -44,7 +44,7 @@ let fpu = "vfpv3-d16"; withTLS = true; libc = "glibc"; - platform = pkgsNoParams.platforms.armv7l-hf-multiplatform; + platform = lib.systems.platforms.armv7l-hf-multiplatform; openssl.system = "linux-generic32"; inherit (platform) gcc; }; @@ -57,7 +57,7 @@ let arch = "aarch64"; withTLS = true; libc = "glibc"; - platform = pkgsNoParams.platforms.aarch64-multiplatform; + platform = lib.systems.platforms.aarch64-multiplatform; inherit (platform) gcc; }; };