2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, imake
|
|
|
|
, gccmakedep
|
|
|
|
, libX11
|
|
|
|
, libXaw
|
|
|
|
, libXext
|
|
|
|
, libXmu
|
|
|
|
, libXt
|
|
|
|
}:
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xxgdb";
|
|
|
|
version = "1.12";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://deb.debian.org/debian/pool/main/x/xxgdb/xxgdb_${version}.orig.tar.gz";
|
|
|
|
sha256 = "0jwazg99wk2l7r390ggw0yr8xipl07bp0qynni141xss530i6d1a";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# http://zhu-qy.blogspot.com.es/2012/11/slackware-14-i-still-got-xxgdb-all-ptys.html
|
|
|
|
./xxgdb-pty.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ imake gccmakedep ];
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = [ libX11 libXaw libXext libXmu libXt ];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
mkdir build
|
|
|
|
xmkmf
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"DESTDIR=build"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Fix up install paths
|
|
|
|
shopt -s globstar
|
|
|
|
mv build/**/bin $out/bin
|
|
|
|
|
|
|
|
install -D xxgdb.1 $out/share/man/man1/xxgdb.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple but powerful graphical interface to gdb";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "xxgdb";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.mit;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2021-08-05 21:33:18 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|