2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, windows, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "10.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "mingw-w64";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/mingw-w64/mingw-w64-v${version}.tar.bz2";
|
2022-09-14 18:05:37 +00:00
|
|
|
hash = "sha256-umtDCu1yxjo3aFMfaj/8Kw/eLFejslFFDc9ImolPCJQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-idl"
|
|
|
|
"--enable-secure-api"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildInputs = [ windows.mingw_w64_headers ];
|
|
|
|
hardeningDisable = [ "stackprotector" "fortify" ];
|
|
|
|
|
|
|
|
meta = {
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.windows;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|