nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch2, 6 supportCompressedPackets ? true, 7 zlib, 8 bzip2, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "pgpdump"; 13 version = "0.36"; 14 15 src = fetchFromGitHub { 16 owner = "kazu-yamamoto"; 17 repo = "pgpdump"; 18 rev = "v${finalAttrs.version}"; 19 sha256 = "sha256-JKedgHCTDnvLyLR3nGl4XFAaxXDU1TgHrxPMlRFwtBo="; 20 }; 21 22 patches = [ 23 # Fix for GCC 15. Remove on next package update. 24 # https://github.com/kazu-yamamoto/pgpdump/pull/45 25 (fetchpatch2 { 26 name = "fix-c23-compatibility.patch"; 27 url = "https://github.com/kazu-yamamoto/pgpdump/commit/541442dc04259bde680b46742522177be40cc065.patch?full_index=1"; 28 hash = "sha256-ye+B8hy0etGcwCG9pD0jCnrg+U5VpFkERad61CexW9Y="; 29 }) 30 ]; 31 32 buildInputs = lib.optionals supportCompressedPackets [ 33 zlib 34 bzip2 35 ]; 36 37 meta = { 38 description = "PGP packet visualizer"; 39 mainProgram = "pgpdump"; 40 longDescription = '' 41 pgpdump is a PGP packet visualizer which displays the packet format of 42 OpenPGP (RFC 4880) and PGP version 2 (RFC 1991). 43 ''; 44 homepage = "http://www.mew.org/~kazu/proj/pgpdump/en/"; 45 license = lib.licenses.bsd3; 46 platforms = lib.platforms.unix; 47 maintainers = [ ]; 48 }; 49})