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