forked from mirrors/nixpkgs
215a07c1a9
Merge conflicts: * unzip (almost trivial) * dvswitch (trivial) * gmp (copied result of `git merge`) The last item introduced gmp-5.0.3, thus full rebuild. +ensureDir->mkdir -p in TeX packages was catched by git but not svn. svn path=/nixpkgs/branches/stdenv-updates/; revision=32091
30 lines
624 B
Nix
30 lines
624 B
Nix
{stdenv, fetchurl, binutilsCross ? 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 binutilsCross ];
|
|
|
|
crossConfig = gccCross.crossConfig;
|
|
|
|
dontStrip = true;
|
|
})
|
|
)
|