Files
nixpkgs/pkgs/by-name/ab/abi-dumper/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
996 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
ctags,
perl,
elfutils,
vtable-dumper,
}:
stdenv.mkDerivation rec {
pname = "abi-dumper";
version = "1.4";
src = fetchFromGitHub {
owner = "lvc";
repo = "abi-dumper";
tag = version;
sha256 = "sha256-BefDMeKHx4MNU6SyX5UpQnwdI+zqap7zunsgdWG/2xc=";
};
patchPhase = ''
substituteInPlace abi-dumper.pl \
--replace eu-readelf ${elfutils}/bin/eu-readelf \
--replace vtable-dumper ${vtable-dumper}/bin/vtable-dumper \
--replace '"ctags"' '"${ctags}/bin/ctags"'
'';
buildInputs = [
elfutils
ctags
perl
vtable-dumper
];
preBuild = "mkdir -p $out";
makeFlags = [ "prefix=$(out)" ];
meta = {
homepage = "https://github.com/lvc/abi-dumper";
description = "Dump ABI of an ELF object containing DWARF debug info";
mainProgram = "abi-dumper";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ bhipple ];
platforms = lib.platforms.all;
};
}