summary refs log tree commit diff
path: root/pkgs/os-specific/windows
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-02-24 04:44:43 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-02-24 07:26:24 +0100
commit44cfba79509f6dd98ae306f62f2cc3183bbd1ab1 (patch)
tree79175153b47f449e9258d7a57641e93d664277ca /pkgs/os-specific/windows
parent4fde72c7d64c78de2e41ba91153cebb907e63100 (diff)
downloadnixlib-44cfba79509f6dd98ae306f62f2cc3183bbd1ab1.tar
nixlib-44cfba79509f6dd98ae306f62f2cc3183bbd1ab1.tar.gz
nixlib-44cfba79509f6dd98ae306f62f2cc3183bbd1ab1.tar.bz2
nixlib-44cfba79509f6dd98ae306f62f2cc3183bbd1ab1.tar.lz
nixlib-44cfba79509f6dd98ae306f62f2cc3183bbd1ab1.tar.xz
nixlib-44cfba79509f6dd98ae306f62f2cc3183bbd1ab1.tar.zst
nixlib-44cfba79509f6dd98ae306f62f2cc3183bbd1ab1.zip
mingw-w64-pthreads: Create based on mingw-w64.
The winpthreads library is part of the same source package, so let's
just override the name and the source directory.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/os-specific/windows')
-rw-r--r--pkgs/os-specific/windows/mingw-w64/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/os-specific/windows/mingw-w64/default.nix b/pkgs/os-specific/windows/mingw-w64/default.nix
index f1c509a50984..c5b6017aae4d 100644
--- a/pkgs/os-specific/windows/mingw-w64/default.nix
+++ b/pkgs/os-specific/windows/mingw-w64/default.nix
@@ -1,4 +1,7 @@
-{stdenv, fetchurl, binutilsCross ? null, gccCross ? null, onlyHeaders ? false}:
+{ stdenv, fetchurl, binutilsCross ? null, gccCross ? null
+, onlyHeaders ? false
+, onlyPthreads ? false
+}:
 
 let
   name = "mingw-w64-3.1.0";
@@ -17,6 +20,11 @@ stdenv.mkDerivation (rec {
     cd mingw-w64-headers
   '';
   configureFlags = "--without-crt --host=x86_64-w64-mingw32";
+} else if onlyPthreads then {
+  name = name + "-pthreads";
+  preConfigure = ''
+    cd mingw-w64-libraries/winpthreads
+  '';
 } else {
   buildInputs = [ gccCross binutilsCross ];