buildRustPackage: link against pthreads-w32 on x86_64-pc-mingw32
This commit is contained in:
parent
31d5005cd6
commit
da3da08cdf
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, cacert, git, cargo, rustc, fetchcargo, buildPackages }:
|
{ stdenv, cacert, git, cargo, rustc, fetchcargo, buildPackages, windows }:
|
||||||
|
|
||||||
{ name ? "${args.pname}-${args.version}"
|
{ name ? "${args.pname}-${args.version}"
|
||||||
, cargoSha256 ? "unset"
|
, cargoSha256 ? "unset"
|
||||||
@ -59,8 +59,8 @@ stdenv.mkDerivation (args // {
|
|||||||
|
|
||||||
patchRegistryDeps = ./patch-registry-deps;
|
patchRegistryDeps = ./patch-registry-deps;
|
||||||
|
|
||||||
nativeBuildInputs = [ cargo rustc git cacert ] ++ nativeBuildInputs;
|
nativeBuildInputs = nativeBuildInputs ++ [ cacert git cargo rustc ];
|
||||||
inherit buildInputs;
|
buildInputs = buildInputs ++ stdenv.lib.optional stdenv.hostPlatform.isMinGW windows.pthreads;
|
||||||
|
|
||||||
patches = cargoPatches ++ patches;
|
patches = cargoPatches ++ patches;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user