diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-10-24 14:47:43 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-10-24 14:47:43 +0200 |
commit | 5621b77a33b311e82c8870f6872a2beffef9dbd0 (patch) | |
tree | 1d561826278871fa8c065ff84cdadc0922cb758b /pkgs/development/compilers/rust/rustc.nix | |
parent | 658335d6a88b623ab926dea99425e2716afa7f4e (diff) | |
parent | 322fa6b06cfbe66ef1bc12b1bfd5fd37d63cbf87 (diff) | |
download | nixpkgs-5621b77a33b311e82c8870f6872a2beffef9dbd0.tar nixpkgs-5621b77a33b311e82c8870f6872a2beffef9dbd0.tar.gz nixpkgs-5621b77a33b311e82c8870f6872a2beffef9dbd0.tar.bz2 nixpkgs-5621b77a33b311e82c8870f6872a2beffef9dbd0.tar.lz nixpkgs-5621b77a33b311e82c8870f6872a2beffef9dbd0.tar.xz nixpkgs-5621b77a33b311e82c8870f6872a2beffef9dbd0.tar.zst nixpkgs-5621b77a33b311e82c8870f6872a2beffef9dbd0.zip |
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/development/compilers/rust/rustc.nix')
-rw-r--r-- | pkgs/development/compilers/rust/rustc.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 73d78319b8c..6eb160add26 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -48,15 +48,18 @@ stdenv.mkDerivation { configureFlags = configureFlags ++ [ "--enable-local-rust" "--local-rust-root=${rustPlatform.rust.rustc}" "--enable-rpath" ] ++ [ "--enable-vendor" "--disable-locked-deps" ] - ++ [ "--enable-llvm-link-shared" ] # ++ [ "--jemalloc-root=${jemalloc}/lib" ++ [ "--default-linker=${stdenv.cc}/bin/cc" "--default-ar=${binutils.out}/bin/ar" ] + ++ optional (!forceBundledLLVM) [ "--enable-llvm-link-shared" ] ++ optional (stdenv.cc.cc ? isClang) "--enable-clang" ++ optional (targets != []) "--target=${target}" ++ optional (!forceBundledLLVM) "--llvm-root=${llvmShared}"; patches = patches ++ targetPatches; + # the rust build system complains that nix alters the checksums + dontFixLibtool = true; + passthru.target = target; postPatch = '' |