2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, windows
|
|
|
|
, autoreconfHook
|
2024-06-20 14:57:18 +00:00
|
|
|
, mingw_w64_headers
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mingw-w64";
|
2024-06-20 14:57:18 +00:00
|
|
|
inherit (mingw_w64_headers) version src meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-idl"
|
|
|
|
"--enable-secure-api"
|
2023-10-09 19:29:22 +00:00
|
|
|
] ++ lib.optionals (stdenv.targetPlatform.libc == "ucrt") [
|
|
|
|
"--with-default-msvcrt=ucrt"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ windows.mingw_w64_headers ];
|
|
|
|
hardeningDisable = [ "stackprotector" "fortify" ];
|
|
|
|
}
|