rust: fix sandbox build on darwin

This commit is contained in:
Daiderd Jordan
2018-01-05 19:06:08 +01:00
committed by Robin Gloster
parent 375f50fa11
commit fdaab47d58
2 changed files with 28 additions and 31 deletions
+2 -1
View File
@@ -17,13 +17,13 @@
let
inherit (stdenv.lib) optional optionalString;
inherit (darwin.apple_sdk.frameworks) Security;
procps = if stdenv.isDarwin then darwin.ps else args.procps;
llvmShared = llvm.override { enableSharedLibraries = true; };
target = builtins.replaceStrings [" "] [","] (builtins.toString targets);
in
stdenv.mkDerivation {
@@ -141,6 +141,7 @@ stdenv.mkDerivation {
++ optional (!stdenv.isDarwin) gdb;
buildInputs = [ ncurses ] ++ targetToolchains
++ optional stdenv.isDarwin Security
++ optional (!forceBundledLLVM) llvmShared;
outputs = [ "out" "man" "doc" ];