From 9685b08db78b7512ba361ea0b57e57f9787e6759 Mon Sep 17 00:00:00 2001 From: Jude Taylor Date: Thu, 15 Oct 2015 14:09:21 -0700 Subject: [PATCH] fix libSystemClosure on non-darwin machines --- pkgs/stdenv/pure-darwin/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/stdenv/pure-darwin/default.nix b/pkgs/stdenv/pure-darwin/default.nix index 1d194f90d9b..860d2e0b54b 100644 --- a/pkgs/stdenv/pure-darwin/default.nix +++ b/pkgs/stdenv/pure-darwin/default.nix @@ -6,7 +6,8 @@ let # libSystem and its transitive dependencies. Get used to this; it's a recurring theme in darwin land - libSystemClosure = [ + libSystemClosure = if system == "x86_64-darwin" + then [ "/usr/lib/libSystem.dylib" "/usr/lib/libSystem.B.dylib" "/usr/lib/libobjc.A.dylib" @@ -16,7 +17,8 @@ let "/usr/lib/libc++.1.dylib" "/usr/lib/libDiagnosticMessagesClient.dylib" "/usr/lib/system" - ]; + ] + else []; fetch = { file, sha256 }: derivation ((import { url = "https://dl.dropboxusercontent.com/u/2857322/${file}";