From c7cc743b52e839960b935e4ad9c0cacb9f571abb Mon Sep 17 00:00:00 2001 From: Jude Taylor Date: Thu, 15 Oct 2015 18:08:53 -0700 Subject: [PATCH] inherit system for builtin fetchurl in PD --- pkgs/stdenv/pure-darwin/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/stdenv/pure-darwin/default.nix b/pkgs/stdenv/pure-darwin/default.nix index 5fbfb16a66ed..c043da8a8a79 100644 --- a/pkgs/stdenv/pure-darwin/default.nix +++ b/pkgs/stdenv/pure-darwin/default.nix @@ -18,16 +18,13 @@ let "/usr/lib/system" ]; - fetch = { file, sha256 }: let drv = import { + fetch = { file, sha256 }: derivation ((import { url = "https://dl.dropboxusercontent.com/u/2857322/${file}"; - inherit sha256; + inherit sha256 system; executable = true; - }; in - if drv.drvAttrs.system == "x86_64-darwin" - then derivation (drv.drvAttrs // { - __impureHostDeps = libSystemClosure; - }) - else drv; + }).drvAttrs // { + __impureHostDeps = libSystemClosure; + }); bootstrapFiles = { sh = fetch { file = "sh"; sha256 = "1qakpg37vl61jnkplz13m3g1csqr85cg8ybp6jwiv6apmg26isnm"; };