svn path=/nixpkgs/trunk/; revision=13951

This commit is contained in:
Eelco Dolstra 2009-02-02 12:44:20 +00:00
parent 9dcefd67ec
commit 79a039080c
2 changed files with 5 additions and 3 deletions

View file

@ -60,7 +60,7 @@ preConfigure() {
langs="$langs,c++"
fi
if test -n "$langF77"; then
langs="$langs,f77"
langs="$langs,f95"
fi
# Perform the build in a different directory.

View file

@ -1,12 +1,14 @@
{ stdenv, fetchurl, noSysDirs
, langC ? true, langCC ? true, langF77 ? false
, profiledCompiler ? false
, gmp ? null, mpfr ? null, bison ? null, flex ? null
}:
assert langC;
assert stdenv.isDarwin;
assert langF77 -> gmp != null;
stdenv.mkDerivation {
stdenv.mkDerivation ({
name = "gcc-4.0.1-apple-5341";
builder = ./builder.sh;
src = fetchurl {
@ -17,4 +19,4 @@ stdenv.mkDerivation {
[./pass-cxxcpp.patch]
++ (if noSysDirs then [./no-sys-dirs.patch] else []);
inherit noSysDirs langC langCC langF77 profiledCompiler;
}
} // (if langF77 then {buildInputs = [gmp mpfr bison flex];} else {}))