nixpkgs/pkgs/by-name/xx/xxgdb/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

56 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchurl
, imake
, gccmakedep
, libX11
, libXaw
, libXext
, libXmu
, libXt
}:
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 = [ libX11 libXaw libXext libXmu libXt ];
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; {
broken = stdenv.hostPlatform.isDarwin;
description = "Simple but powerful graphical interface to gdb";
mainProgram = "xxgdb";
license = licenses.mit;
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.all;
};
}