svn path=/nixpkgs/trunk/; revision=13951
This commit is contained in:
parent
9dcefd67ec
commit
79a039080c
@ -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.
|
||||
|
@ -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 {}))
|
||||
|
Loading…
Reference in New Issue
Block a user