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