2018-08-10 18:00:49 +02:00
|
|
|
{ stdenv, windows, fetchurl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "5.0.4";
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "mingw-w64";
|
|
|
|
inherit version;
|
2018-08-10 18:00:49 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/mingw-w64/mingw-w64-v${version}.tar.bz2";
|
|
|
|
sha256 = "00zq3z1hbzd5yzmskskjg79xrzwsqx7ihyprfaxy4hb897vf29sm";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-idl"
|
|
|
|
"--enable-secure-api"
|
|
|
|
];
|
2012-05-24 23:23:23 +02:00
|
|
|
|
2017-06-19 21:30:17 +02:00
|
|
|
buildInputs = [ windows.mingw_w64_headers ];
|
2012-05-24 23:23:23 +02:00
|
|
|
dontStrip = true;
|
2017-12-29 15:29:05 +01:00
|
|
|
hardeningDisable = [ "stackprotector" "fortify" ];
|
2018-08-07 16:20:13 +02:00
|
|
|
patches = [ ./osvi.patch ];
|
2018-08-10 17:51:18 +02:00
|
|
|
|
|
|
|
meta = {
|
2019-01-28 16:42:04 +01:00
|
|
|
platforms = stdenv.lib.platforms.windows;
|
2018-08-10 17:51:18 +02:00
|
|
|
};
|
2017-06-19 17:51:01 +02:00
|
|
|
}
|