add some versions of cppunit/boost/protobuf, added binutils with gold, added nlopt

svn path=/nixpkgs/trunk/; revision=27132
This commit is contained in:
Rob Vermaas
2011-05-04 10:03:46 +00:00
parent 59dae8edf4
commit 8f7cab5d5c
4 changed files with 125 additions and 3 deletions
@@ -1,4 +1,4 @@
{stdenv, fetchurl, noSysDirs, zlib, cross ? null}:
{stdenv, fetchurl, noSysDirs, zlib, cross ? null, gold ? false, bison, flex2535, bc, dejagnu}:
let
basename = "binutils-2.21";
@@ -18,7 +18,10 @@ stdenv.mkDerivation rec {
./new-dtags.patch
];
buildInputs = [ zlib ];
buildInputs = [ zlib ] ++ stdenv.lib.optional gold [dejagnu flex2535 bison
# Some Gold tests require this:
bc] ;
inherit noSysDirs;
@@ -38,7 +41,8 @@ stdenv.mkDerivation rec {
configureFlags = "--disable-werror" # needed for dietlibc build
+ stdenv.lib.optionalString (stdenv.system == "mips64-linux")
" --enable-fix-loongson2f-nop"
+ stdenv.lib.optionalString (cross != null) " --target=${cross.config}";
+ stdenv.lib.optionalString (cross != null) " --target=${cross.config}"
+ stdenv.lib.optionalString gold " --enable-gold" ;
meta = {
description = "GNU Binutils, tools for manipulating binaries (linker, assembler, etc.)";