2021-01-20 03:09:31 +01:00
|
|
|
{ lib, stdenv, windows, fetchurl }:
|
2018-08-10 18:00:49 +02:00
|
|
|
|
|
|
|
let
|
2021-07-20 22:21:36 +02:00
|
|
|
version = "9.0.0";
|
2018-08-10 18:00:49 +02:00
|
|
|
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";
|
2021-07-20 22:21:36 +02:00
|
|
|
sha256 = "10a15bi4lyfi0k0haj0klqambicwma6yi7vssgbz8prg815vja8r";
|
2018-08-10 18:00:49 +02:00
|
|
|
};
|
|
|
|
|
2019-11-11 06:08:45 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-08-10 18:00:49 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-idl"
|
|
|
|
"--enable-secure-api"
|
|
|
|
];
|
2012-05-24 23:23:23 +02:00
|
|
|
|
2019-11-11 06:08:45 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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-10 17:51:18 +02:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 15:45:37 +01:00
|
|
|
platforms = lib.platforms.windows;
|
2018-08-10 17:51:18 +02:00
|
|
|
};
|
2017-06-19 17:51:01 +02:00
|
|
|
}
|