mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 15:07:33 +00:00
rustc: fix building with MinGW target
Building std requires dlltool for the target platform.
This commit is contained in:
parent
88738527f9
commit
ecba63d3e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user