Making gcc-4.5 cross-build to mingw32 too (set by the proper config and libc = "msvcrt"

in the crossSystem)

svn path=/nixpkgs/trunk/; revision=21630
This commit is contained in:
Lluís Batlle i Rossell
2010-05-06 18:22:51 +00:00
parent 3b2d0133f3
commit c548c084bb
7 changed files with 201 additions and 17 deletions
@@ -0,0 +1,29 @@
{stdenv, fetchurl, binutilsCross ? null, gccCross ? null, onlyHeaders ? false}:
let
name = "w32api-3.14";
in
stdenv.mkDerivation ({
inherit name;
src = fetchurl {
url = "mirror://sourceforge/mingw/${name}-mingw32-src.tar.gz";
sha256 = "128ax8a4dlspxsi5fi7bi1aslppqx3kczr1ibzj1z1az48bvwp21";
};
} //
(if onlyHeaders then {
name = name + "-headers";
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
ensureDir $out
cp -R include $out
'';
} else {
buildInputs = [ gccCross binutilsCross ];
crossConfig = gccCross.crossConfig;
dontStrip = true;
})
)