svn path=/nixpkgs/trunk/; revision=13951
This commit is contained in:
parent
9dcefd67ec
commit
79a039080c
@ -60,7 +60,7 @@ preConfigure() {
|
|||||||
langs="$langs,c++"
|
langs="$langs,c++"
|
||||||
fi
|
fi
|
||||||
if test -n "$langF77"; then
|
if test -n "$langF77"; then
|
||||||
langs="$langs,f77"
|
langs="$langs,f95"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Perform the build in a different directory.
|
# Perform the build in a different directory.
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
{ stdenv, fetchurl, noSysDirs
|
{ stdenv, fetchurl, noSysDirs
|
||||||
, langC ? true, langCC ? true, langF77 ? false
|
, langC ? true, langCC ? true, langF77 ? false
|
||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
|
, gmp ? null, mpfr ? null, bison ? null, flex ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert langC;
|
assert langC;
|
||||||
assert stdenv.isDarwin;
|
assert stdenv.isDarwin;
|
||||||
|
assert langF77 -> gmp != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation ({
|
||||||
name = "gcc-4.0.1-apple-5341";
|
name = "gcc-4.0.1-apple-5341";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -17,4 +19,4 @@ stdenv.mkDerivation {
|
|||||||
[./pass-cxxcpp.patch]
|
[./pass-cxxcpp.patch]
|
||||||
++ (if noSysDirs then [./no-sys-dirs.patch] else []);
|
++ (if noSysDirs then [./no-sys-dirs.patch] else []);
|
||||||
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
||||||
}
|
} // (if langF77 then {buildInputs = [gmp mpfr bison flex];} else {}))
|
||||||
|
Loading…
Reference in New Issue
Block a user