295315cc87
See previous commit for what was done to `binutils` to make this possible. There were some uses of `forcedNativePackages` added. The combination of overrides with that attribute is highly spooky: it's often important that if an overridden package comes from it, the replaced arguments for that package come from it. Long term this package set and all the spookiness should be gone and irrelevant: "Move along, nothing to see here!" No hashes should be changed with this commit
30 lines
614 B
Nix
30 lines
614 B
Nix
{stdenv, fetchurl, binutils ? null, gccCross ? null, onlyHeaders ? false}:
|
|
|
|
let
|
|
name = "mingwrt-3.20";
|
|
in
|
|
stdenv.mkDerivation (rec {
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/mingw/MinGW/Base/mingw-rt/${name}-mingw32-src.tar.gz";
|
|
sha256 = "02pydg1m8y35nxb4k34nlb5c341y2waq76z42mgdzlcf661r91pi";
|
|
};
|
|
|
|
} //
|
|
(if onlyHeaders then {
|
|
name = name + "-headers";
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -R include $out
|
|
'';
|
|
} else {
|
|
buildInputs = [ gccCross binutils ];
|
|
|
|
crossConfig = gccCross.crossConfig;
|
|
|
|
dontStrip = true;
|
|
})
|
|
)
|