nixpkgs/pkgs/os-specific/windows/mingw-w64/default.nix

31 lines
612 B
Nix
Raw Normal View History

{ lib, stdenv, windows, fetchurl }:
2018-08-10 17:00:49 +01:00
let
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";
sha256 = "1w28mynv500y03h92nh87rgw3fnp82qwnjbxrrzqkmr63q812pl0";
2018-08-10 17:00:49 +01:00
};
outputs = [ "out" "dev" ];
2018-08-10 17:00:49 +01:00
configureFlags = [
"--enable-idl"
"--enable-secure-api"
];
enableParallelBuilding = true;
buildInputs = [ windows.mingw_w64_headers ];
dontStrip = true;
hardeningDisable = [ "stackprotector" "fortify" ];
meta = {
2021-01-15 14:45:37 +00:00
platforms = lib.platforms.windows;
};
}