3
0
Fork 0
forked from mirrors/nixpkgs

buildRustPackage: link against pthreads-w32 on x86_64-pc-mingw32

This commit is contained in:
Yegor Timoshenko 2019-08-14 09:50:05 +00:00
parent 31d5005cd6
commit da3da08cdf
No known key found for this signature in database
GPG key ID: B0B0D739BB47A03A

View file

@ -1,4 +1,4 @@
{ stdenv, cacert, git, cargo, rustc, fetchcargo, buildPackages }:
{ stdenv, cacert, git, cargo, rustc, fetchcargo, buildPackages, windows }:
{ name ? "${args.pname}-${args.version}"
, cargoSha256 ? "unset"
@ -59,8 +59,8 @@ stdenv.mkDerivation (args // {
patchRegistryDeps = ./patch-registry-deps;
nativeBuildInputs = [ cargo rustc git cacert ] ++ nativeBuildInputs;
inherit buildInputs;
nativeBuildInputs = nativeBuildInputs ++ [ cacert git cargo rustc ];
buildInputs = buildInputs ++ stdenv.lib.optional stdenv.hostPlatform.isMinGW windows.pthreads;
patches = cargoPatches ++ patches;