2021-01-20 02:09:31 +00:00
|
|
|
{ lib, stdenv, windows, fetchurl }:
|
2018-08-10 17:00:49 +01:00
|
|
|
|
|
|
|
let
|
2020-05-18 22:08:57 +01:00
|
|
|
version = "6.0.0";
|
2018-08-10 17:00:49 +01:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "mingw-w64";
|
|
|
|
inherit version;
|
2018-08-10 17:00:49 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/mingw-w64/mingw-w64-v${version}.tar.bz2";
|
2020-05-18 22:08:57 +01:00
|
|
|
sha256 = "1w28mynv500y03h92nh87rgw3fnp82qwnjbxrrzqkmr63q812pl0";
|
2018-08-10 17:00:49 +01:00
|
|
|
};
|
|
|
|
|
2019-11-11 05:08:45 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-08-10 17:00:49 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-idl"
|
|
|
|
"--enable-secure-api"
|
|
|
|
];
|
2012-05-24 22:23:23 +01:00
|
|
|
|
2019-11-11 05:08:45 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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-10 16:51:18 +01:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 14:45:37 +00:00
|
|
|
platforms = lib.platforms.windows;
|
2018-08-10 16:51:18 +01:00
|
|
|
};
|
2017-06-19 16:51:01 +01:00
|
|
|
}
|