2009-10-28 23:25:50 +01:00
|
|
|
{ fetchurl, stdenv, ncurses, readline, gmp, mpfr, expat, texinfo }:
|
2007-02-22 17:07:51 +01:00
|
|
|
|
2007-11-16 18:30:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2009-10-10 16:45:38 +02:00
|
|
|
name = "gdb-7.0";
|
2008-09-03 15:12:23 +02:00
|
|
|
|
2007-02-22 17:07:51 +01:00
|
|
|
src = fetchurl {
|
2007-11-16 18:30:34 +01:00
|
|
|
url = "mirror://gnu/gdb/${name}.tar.bz2";
|
2009-10-10 16:45:38 +02:00
|
|
|
sha256 = "1k9y271gnnvi0fny8ycydcd79snigwh88rgwi03ad782r2awcl67";
|
2008-09-03 15:12:23 +02:00
|
|
|
};
|
|
|
|
|
2009-10-12 12:06:41 +02:00
|
|
|
# TODO: Add optional support for Python scripting.
|
2009-10-28 23:25:50 +01:00
|
|
|
buildInputs = [ ncurses readline gmp mpfr expat texinfo ];
|
2008-09-03 15:12:23 +02:00
|
|
|
|
2009-10-28 23:25:50 +01:00
|
|
|
configureFlags =
|
|
|
|
'' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline
|
|
|
|
--with-expat --with-libexpat-prefix=${expat}
|
|
|
|
'';
|
2008-09-03 15:12:23 +02:00
|
|
|
|
2009-10-28 23:25:50 +01:00
|
|
|
postInstall =
|
|
|
|
'' # Remove Info files already provided by Binutils and other packages.
|
|
|
|
rm -v $out/share/info/{standards,configure,bfd}.info
|
|
|
|
'';
|
2009-10-12 12:06:41 +02:00
|
|
|
|
2008-09-03 15:12:23 +02: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 21:45:02 +02:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.cygwin;
|
2009-10-28 23:25:50 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2007-02-22 17:07:51 +01:00
|
|
|
};
|
|
|
|
}
|