depot/third_party/nixpkgs/pkgs/development/tools/misc/xxgdb/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

43 lines
994 B
Nix

{ lib, stdenv, fetchurl, imake, xlibsWrapper, gccmakedep, libXaw }:
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 ];
buildInputs = [ xlibsWrapper libXaw ];
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; {
description = "A simple but powerful graphical interface to gdb";
license = licenses.mit;
maintainers = with maintainers; [ angustrau ];
platforms = platforms.all;
};
}