diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-10-15 23:27:12 +0000 |
---|---|---|
committer | Yureka <yuka@yuka.dev> | 2022-10-16 19:09:09 +0200 |
commit | f989817c8d5bbe058c49866be00ef345a436e346 (patch) | |
tree | d4f4359cbba2f512e9b901d3ebb4df0c42b72c3e /pkgs/development/compilers/rust | |
parent | ada5320ea36e6db415c0c0f53283f4b05d7863bd (diff) | |
download | nixlib-f989817c8d5bbe058c49866be00ef345a436e346.tar nixlib-f989817c8d5bbe058c49866be00ef345a436e346.tar.gz nixlib-f989817c8d5bbe058c49866be00ef345a436e346.tar.bz2 nixlib-f989817c8d5bbe058c49866be00ef345a436e346.tar.lz nixlib-f989817c8d5bbe058c49866be00ef345a436e346.tar.xz nixlib-f989817c8d5bbe058c49866be00ef345a436e346.tar.zst nixlib-f989817c8d5bbe058c49866be00ef345a436e346.zip |
rustc: add build stdenv.cc dependency
This is required when cross-compiling, as otherwise the build will fail due to the missing cc program.
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/rustc.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 668046ac12bc..eb0304aca187 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -155,7 +155,7 @@ in stdenv.mkDerivation rec { # use it for the normal build. This disables cmake in Nix. dontUseCmakeConfigure = true; - depsBuildBuild = [ pkg-config ]; + depsBuildBuild = [ pkgsBuildHost.stdenv.cc pkg-config ]; nativeBuildInputs = [ file python3 rustPlatform.rust.rustc cmake |