2010-05-06 19:22:51 +01:00
|
|
|
{stdenv, fetchurl, binutilsCross ? null, gccCross ? null, onlyHeaders ? false}:
|
|
|
|
|
|
|
|
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 {
|
|
|
|
buildInputs = [ gccCross binutilsCross ];
|
|
|
|
|
|
|
|
crossConfig = gccCross.crossConfig;
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
})
|
|
|
|
)
|