about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-11-08T19·18-0500
committerShea Levy <shea@shealevy.com>2015-11-08T19·18-0500
commit8a76bc9fb0918548b9bffaa39105ac63135d1c5d (patch)
treee5eb3696faa52caab0e742ccac137d2fcf6d2838
parent5bc12454fd0ca07c26de197daaf0b52188d517b5 (diff)
Only require libsystem on darwin
Fixes #688
-rw-r--r--corepkgs/buildenv.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/corepkgs/buildenv.nix b/corepkgs/buildenv.nix
index 4a23d15a9ab8..b4946457f167 100644
--- a/corepkgs/buildenv.nix
+++ b/corepkgs/buildenv.nix
@@ -23,10 +23,10 @@ derivation {
   # network traffic, so don't do that.
   preferLocalBuild = true;
 
-  __impureHostDeps = [
+  __impureHostDeps = if builtins.currentSystem == "x86_64-darwin" then [
     "/usr/lib/libSystem.dylib"
     "/usr/lib/system"
-  ];
+  ] else null;
 
   inherit chrootDeps;
 }