summary refs log tree commit diff
path: root/pkgs/development/compilers/rust
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2022-10-15 23:27:12 +0000
committerYureka <yuka@yuka.dev>2022-10-16 19:09:09 +0200
commitf989817c8d5bbe058c49866be00ef345a436e346 (patch)
treed4f4359cbba2f512e9b901d3ebb4df0c42b72c3e /pkgs/development/compilers/rust
parentada5320ea36e6db415c0c0f53283f4b05d7863bd (diff)
downloadnixpkgs-f989817c8d5bbe058c49866be00ef345a436e346.tar
nixpkgs-f989817c8d5bbe058c49866be00ef345a436e346.tar.gz
nixpkgs-f989817c8d5bbe058c49866be00ef345a436e346.tar.bz2
nixpkgs-f989817c8d5bbe058c49866be00ef345a436e346.tar.lz
nixpkgs-f989817c8d5bbe058c49866be00ef345a436e346.tar.xz
nixpkgs-f989817c8d5bbe058c49866be00ef345a436e346.tar.zst
nixpkgs-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.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix
index 668046ac12b..eb0304aca18 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