1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/os-specific/windows/mingw-w64/default.nix

28 lines
580 B
Nix
Raw Normal View History

2018-08-10 17:00:49 +01:00
{ stdenv, windows, fetchurl }:
let
version = "5.0.4";
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";
sha256 = "00zq3z1hbzd5yzmskskjg79xrzwsqx7ihyprfaxy4hb897vf29sm";
};
configureFlags = [
"--enable-idl"
"--enable-secure-api"
];
buildInputs = [ windows.mingw_w64_headers ];
dontStrip = true;
hardeningDisable = [ "stackprotector" "fortify" ];
patches = [ ./osvi.patch ];
meta = {
platforms = stdenv.lib.platforms.windows;
};
}