Navigation Menu

Skip to content

Commit

Permalink
buildRustPackage: link against pthreads-w32 on x86_64-pc-mingw32
Browse files Browse the repository at this point in the history
  • Loading branch information
lukateras committed Aug 15, 2019
1 parent 31d5005 commit da3da08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/build-support/rust/default.nix
@@ -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"
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit da3da08

Please sign in to comment.