rustc: fix building with MinGW target

Building std requires dlltool for the target platform.
This commit is contained in:
Alyssa Ross 2024-08-25 14:09:29 +00:00
parent 88738527f9
commit ecba63d3e6

View File

@ -3,6 +3,7 @@
, runCommandLocal, fetchurl, file, python3
, darwin, cargo, cmake, rustc, rustfmt
, pkg-config, openssl, xz, zlib
, bintools
, libiconv
, which, libffi
, withBundledLLVM ? false
@ -247,6 +248,7 @@ in stdenv.mkDerivation (finalAttrs: {
dontUseCmakeConfigure = true;
depsBuildBuild = [ pkgsBuildHost.stdenv.cc pkg-config ];
depsBuildTarget = lib.optionals stdenv.targetPlatform.isMinGW [ bintools ];
nativeBuildInputs = [
file python3 rustc cmake