Use gcc wrapper

svn path=/nixpkgs/trunk/; revision=6133
This commit is contained in:
Martin Bravenboer
2006-08-16 15:03:13 +00:00
parent 5f88a929cc
commit 4957325c31
2 changed files with 33 additions and 5 deletions
+16 -3
View File
@@ -79,6 +79,21 @@ let {
inherit fetchurl; inherit fetchurl;
}; };
gcc = (import ../../build-support/gcc-wrapper) {
name = "mingw-gcc-wrapper";
nativeTools = false;
nativeGlibc = true;
inherit shell; # Note: this is the MSYS shell.
binutils = binpkgs.binutils;
gcc = binpkgs.gccCore // { langC = true; langCC = false; langF77 = false; };
/**
* Tricky: gcc-wrapper cannot be constructed using the MSYS shell
* so we use the Cygwin shell.
*/
stdenv = stdenvInit1;
};
stdenv = stdenv =
stdenvInit2.mkDerivation { stdenvInit2.mkDerivation {
name = "stdenv-mingw"; name = "stdenv-mingw";
@@ -86,9 +101,7 @@ let {
substitute = ../../build-support/substitute/substitute.sh; substitute = ../../build-support/substitute/substitute.sh;
setup = ./setup.sh; setup = ./setup.sh;
initialPath = [binpkgs.make msys]; initialPath = [binpkgs.make msys];
inherit shell; inherit shell gcc;
# todo: wrapper?
gcc = binpkgs.gcc;
}; };
mkDerivationFun = { mkDerivationFun = {
+17 -2
View File
@@ -9,7 +9,8 @@ let {
*/ */
body = {stdenv, fetchurl} : { body = {stdenv, fetchurl} : {
make = make { inherit stdenv fetchurl; }; make = make { inherit stdenv fetchurl; };
gcc = gcc { inherit stdenv fetchurl; }; gccCore = gccCore { inherit stdenv fetchurl; };
binutils = binutils { inherit stdenv fetchurl; };
}; };
/** /**
@@ -29,7 +30,7 @@ let {
/** /**
* GCC. Binary * GCC. Binary
*/ */
gcc = {stdenv, fetchurl} : gccCore = {stdenv, fetchurl} :
stdenv.mkDerivation { stdenv.mkDerivation {
name = "mingw-gcc-core-3.4.2-20040916-1"; name = "mingw-gcc-core-3.4.2-20040916-1";
builder = ./bin-builder.sh; builder = ./bin-builder.sh;
@@ -40,6 +41,20 @@ let {
}; };
}; };
/**
* binutils. Binary.
*/
binutils = {stdenv, fetchurl} :
stdenv.mkDerivation {
name = "mingw-binutils-2.16.91-20060119-1";
builder = ./bin-builder.sh;
src =
fetchurl {
url = http://surfnet.dl.sourceforge.net/sourceforge/mingw/binutils-2.16.91-20060119-1.tar.gz;
md5 = "a54f33ca9d6cf56dc99c0c5367f58ea3";
};
};
/* /*
pkgs.coreutils pkgs.coreutils
pkgs.findutils pkgs.findutils