Added mingw gcc

svn path=/nixpkgs/trunk/; revision=6132
This commit is contained in:
Martin Bravenboer 2006-08-16 14:35:43 +00:00
parent 884b6f9a0d
commit 5f88a929cc
2 changed files with 31 additions and 7 deletions

View File

@ -73,10 +73,10 @@ let {
shell = msys + /bin/sh + ".exe"; shell = msys + /bin/sh + ".exe";
make = binpkgs =
(import ./pkgs).make { (import ./pkgs) {
stdenv = stdenvInit2; stdenv = stdenvInit2;
inherit fetchurl; inherit fetchurl;
}; };
stdenv = stdenv =
@ -85,9 +85,10 @@ let {
builder = ./builder.sh; builder = ./builder.sh;
substitute = ../../build-support/substitute/substitute.sh; substitute = ../../build-support/substitute/substitute.sh;
setup = ./setup.sh; setup = ./setup.sh;
initialPath = [make msys]; initialPath = [binpkgs.make msys];
inherit shell; inherit shell;
gcc = msys; # TODO # todo: wrapper?
gcc = binpkgs.gcc;
}; };
mkDerivationFun = { mkDerivationFun = {

View File

@ -1,14 +1,23 @@
/** /**
* MinGW packages. * MinGW packages.
*/ */
rec { let {
/**
* stdenv and fetchurl are parameters of every function to make this more flexible:
* after some packages, we might be able to use a better stdenv/fetchurl.
*/
body = {stdenv, fetchurl} : {
make = make { inherit stdenv fetchurl; };
gcc = gcc { inherit stdenv fetchurl; };
};
/** /**
* Make. Binary. * Make. Binary.
*/ */
make = {stdenv, fetchurl} : make = {stdenv, fetchurl} :
stdenv.mkDerivation { stdenv.mkDerivation {
name = "mingw32-make-3.81"; name = "mingw-make-3.81";
builder = ./bin-builder.sh; builder = ./bin-builder.sh;
src = src =
fetchurl { fetchurl {
@ -17,6 +26,20 @@ rec {
}; };
}; };
/**
* GCC. Binary
*/
gcc = {stdenv, fetchurl} :
stdenv.mkDerivation {
name = "mingw-gcc-core-3.4.2-20040916-1";
builder = ./bin-builder.sh;
src =
fetchurl {
url = http://surfnet.dl.sourceforge.net/sourceforge/mingw/gcc-core-3.4.2-20040916-1.tar.gz;
md5 = "d9cd78f926fc31ef101c6fa7072fc65d";
};
};
/* /*
pkgs.coreutils pkgs.coreutils
pkgs.findutils pkgs.findutils