Commit ecba63d3 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

rustc: fix building with MinGW target

Building std requires dlltool for the target platform.
parent 88738527
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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