summary refs log tree commit diff
path: root/pkgs/development/compilers/rust
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-10-23 10:23:34 +0200
committerDaiderd Jordan <daiderd@gmail.com>2017-10-23 10:24:17 +0200
commitf1f7296885109b8c126acf47915ebc678beaf8a2 (patch)
treed0e5ba719d63361bb1276356ea9dc956c63fadf1 /pkgs/development/compilers/rust
parent891c3721edd9881cd8a63c018a1a9b0fef9136ad (diff)
downloadnixlib-f1f7296885109b8c126acf47915ebc678beaf8a2.tar
nixlib-f1f7296885109b8c126acf47915ebc678beaf8a2.tar.gz
nixlib-f1f7296885109b8c126acf47915ebc678beaf8a2.tar.bz2
nixlib-f1f7296885109b8c126acf47915ebc678beaf8a2.tar.lz
nixlib-f1f7296885109b8c126acf47915ebc678beaf8a2.tar.xz
nixlib-f1f7296885109b8c126acf47915ebc678beaf8a2.tar.zst
nixlib-f1f7296885109b8c126acf47915ebc678beaf8a2.zip
cargo: fix darwin build
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r--pkgs/development/compilers/rust/cargo.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/compilers/rust/cargo.nix b/pkgs/development/compilers/rust/cargo.nix
index ec890b3bf7a2..5225e95b1e11 100644
--- a/pkgs/development/compilers/rust/cargo.nix
+++ b/pkgs/development/compilers/rust/cargo.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchFromGitHub, file, curl, pkgconfig, python, openssl, cmake, zlib
-, makeWrapper, libiconv, cacert, rustPlatform, rustc, libgit2
+, makeWrapper, libiconv, cacert, rustPlatform, rustc, libgit2, darwin
 , version, srcSha, cargoSha256
 , patches ? []}:
 
@@ -21,7 +21,10 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ file curl python openssl cmake zlib makeWrapper libgit2 ]
-    ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
+    # FIXME: Use impure version of CoreFoundation because of missing symbols.
+    # CFURLSetResourcePropertyForKey is defined in the headers but there's no
+    # corresponding implementation in the sources from opensource.apple.com.
+    ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreFoundation libiconv ];
 
   LIBGIT2_SYS_USE_PKG_CONFIG=1;