2009-12-02 20:54:40 +00:00
|
|
|
{ fetchurl, stdenv, ncurses, readline, gmp, mpfr, expat, texinfo
|
2010-09-27 14:31:46 +01:00
|
|
|
, dejagnu, python, target ? null }:
|
2007-02-22 16:07:51 +00:00
|
|
|
|
2009-12-02 20:54:40 +00:00
|
|
|
let
|
2010-09-05 16:19:07 +01:00
|
|
|
basename = "gdb-7.2";
|
2009-12-02 20:54:40 +00:00
|
|
|
in
|
2007-11-16 17:30:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2009-12-02 20:54:40 +00:00
|
|
|
name = basename + stdenv.lib.optionalString (target != null)
|
|
|
|
("-" + target.config);
|
2008-09-03 14:12:23 +01:00
|
|
|
|
2007-02-22 16:07:51 +00:00
|
|
|
src = fetchurl {
|
2009-12-02 20:54:40 +00:00
|
|
|
url = "mirror://gnu/gdb/${basename}.tar.bz2";
|
2010-09-05 16:19:07 +01:00
|
|
|
sha256 = "1w0h6hya0bl46xddd57mdzwmffplwglhnh9x9hv46ll4mf44ni5z";
|
2008-09-03 14:12:23 +01:00
|
|
|
};
|
|
|
|
|
2010-09-27 14:31:46 +01:00
|
|
|
buildInputs = [ ncurses readline gmp mpfr expat texinfo python ]
|
2010-09-05 16:19:07 +01:00
|
|
|
++ stdenv.lib.optional doCheck dejagnu;
|
2008-09-03 14:12:23 +01:00
|
|
|
|
2009-10-28 22:25:50 +00:00
|
|
|
configureFlags =
|
|
|
|
'' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline
|
|
|
|
--with-expat --with-libexpat-prefix=${expat}
|
2009-12-02 20:54:40 +00:00
|
|
|
'' + stdenv.lib.optionalString (target != null)
|
|
|
|
" --target=${target.config}";
|
2008-09-03 14:12:23 +01:00
|
|
|
|
2009-10-28 22:25:50 +00:00
|
|
|
postInstall =
|
|
|
|
'' # Remove Info files already provided by Binutils and other packages.
|
|
|
|
rm -v $out/share/info/{standards,configure,bfd}.info
|
|
|
|
'';
|
2009-10-12 11:06:41 +01:00
|
|
|
|
2010-09-05 16:19:07 +01:00
|
|
|
# TODO: Investigate & fix the test failures.
|
|
|
|
doCheck = false;
|
|
|
|
|
2008-09-03 14:12:23 +01:00
|
|
|
meta = {
|
|
|
|
description = "GDB, the GNU Project debugger";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GDB, the GNU Project debugger, allows you to see what is going
|
|
|
|
on `inside' another program while it executes -- or what another
|
|
|
|
program was doing at the moment it crashed.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/gdb/;
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
2009-09-23 20:45:02 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.cygwin;
|
2009-10-28 22:25:50 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2007-02-22 16:07:51 +00:00
|
|
|
};
|
|
|
|
}
|