f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
26 lines
535 B
Nix
26 lines
535 B
Nix
{ lib
|
|
, stdenv
|
|
, windows
|
|
, autoreconfHook
|
|
, mingw_w64_headers
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mingw-w64";
|
|
inherit (mingw_w64_headers) version src meta;
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
configureFlags = [
|
|
"--enable-idl"
|
|
"--enable-secure-api"
|
|
] ++ lib.optionals (stdenv.targetPlatform.libc == "ucrt") [
|
|
"--with-default-msvcrt=ucrt"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ windows.mingw_w64_headers ];
|
|
hardeningDisable = [ "stackprotector" "fortify" ];
|
|
}
|