2017-04-26 02:18:29 +01:00
|
|
|
{stdenv, fetchurl, binutils ? null, gccCross ? null, onlyHeaders ? false}:
|
2010-05-06 19:22:51 +01:00
|
|
|
|
|
|
|
let
|
2012-01-30 09:53:39 +00:00
|
|
|
name = "mingwrt-3.20";
|
2010-05-06 19:22:51 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-01-30 09:53:39 +00:00
|
|
|
url = "mirror://sourceforge/mingw/MinGW/Base/mingw-rt/${name}-mingw32-src.tar.gz";
|
|
|
|
sha256 = "02pydg1m8y35nxb4k34nlb5c341y2waq76z42mgdzlcf661r91pi";
|
2010-05-06 19:22:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} //
|
|
|
|
(if onlyHeaders then {
|
|
|
|
name = name + "-headers";
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2010-05-06 19:22:51 +01:00
|
|
|
cp -R include $out
|
|
|
|
'';
|
|
|
|
} else {
|
2017-04-26 02:18:29 +01:00
|
|
|
buildInputs = [ gccCross binutils ];
|
2010-05-06 19:22:51 +01:00
|
|
|
|
|
|
|
crossConfig = gccCross.crossConfig;
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
})
|
|
|
|
)
|