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