13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
29 lines
592 B
Nix
29 lines
592 B
Nix
{ lib, stdenv, windows, fetchurl }:
|
|
|
|
let
|
|
version = "9.0.0";
|
|
in stdenv.mkDerivation {
|
|
pname = "mingw-w64";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/mingw-w64/mingw-w64-v${version}.tar.bz2";
|
|
sha256 = "10a15bi4lyfi0k0haj0klqambicwma6yi7vssgbz8prg815vja8r";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
configureFlags = [
|
|
"--enable-idl"
|
|
"--enable-secure-api"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ windows.mingw_w64_headers ];
|
|
hardeningDisable = [ "stackprotector" "fortify" ];
|
|
|
|
meta = {
|
|
platforms = lib.platforms.windows;
|
|
};
|
|
}
|