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