From f989817c8d5bbe058c49866be00ef345a436e346 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 15 Oct 2022 23:27:12 +0000 Subject: [PATCH] rustc: add build stdenv.cc dependency This is required when cross-compiling, as otherwise the build will fail due to the missing cc program. --- pkgs/development/compilers/rust/rustc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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