mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
windows.mingw_w64*: use lib for autoconf flags
This commit is contained in:
parent
14e440390a
commit
3d51188a76
@ -22,9 +22,9 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-idl"
|
(lib.enableFeature true "idl")
|
||||||
"--enable-secure-api"
|
(lib.enableFeature true "secure-api")
|
||||||
"--with-default-msvcrt=${crt}"
|
(lib.withFeatureAs true "default-msvcrt" crt)
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
{ stdenv, mingw_w64_headers }:
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
mingw_w64_headers,
|
||||||
|
# Rustc require 'libpthread.a' when targeting 'x86_64-pc-windows-gnu'.
|
||||||
|
# Enabling this makes it work out of the box instead of failing.
|
||||||
|
withStatic ? true,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "mingw_w64-pthreads";
|
pname = "mingw_w64-pthreads";
|
||||||
inherit (mingw_w64_headers) version src meta;
|
inherit (mingw_w64_headers) version src meta;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [ (lib.enableFeature withStatic "static") ];
|
||||||
# Rustc require 'libpthread.a' when targeting 'x86_64-pc-windows-gnu'.
|
|
||||||
# Enabling this makes it work out of the box instead of failing.
|
|
||||||
"--enable-static"
|
|
||||||
];
|
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cd mingw-w64-libraries/winpthreads
|
cd mingw-w64-libraries/winpthreads
|
||||||
|
Loading…
Reference in New Issue
Block a user