forked from mirrors/nixpkgs
8b89e0494c
Version 6.0.0 brings better Win32 API coverage and bugfixes. It's been used in various distros long enough to be considered stable. Latest version 7.0.0 hasn't received extensive testing yet. Announce mail: https://sourceforge.net/p/mingw-w64/mailman/message/36416777/
31 lines
614 B
Nix
31 lines
614 B
Nix
{ stdenv, windows, fetchurl }:
|
|
|
|
let
|
|
version = "6.0.0";
|
|
in stdenv.mkDerivation {
|
|
pname = "mingw-w64";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/mingw-w64/mingw-w64-v${version}.tar.bz2";
|
|
sha256 = "1w28mynv500y03h92nh87rgw3fnp82qwnjbxrrzqkmr63q812pl0";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
configureFlags = [
|
|
"--enable-idl"
|
|
"--enable-secure-api"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ windows.mingw_w64_headers ];
|
|
dontStrip = true;
|
|
hardeningDisable = [ "stackprotector" "fortify" ];
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.windows;
|
|
};
|
|
}
|