1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 supportCompressedPackets ? true,
6 zlib,
7 bzip2,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "pgpdump";
12 version = "0.36";
13
14 src = fetchFromGitHub {
15 owner = "kazu-yamamoto";
16 repo = "pgpdump";
17 rev = "v${version}";
18 sha256 = "sha256-JKedgHCTDnvLyLR3nGl4XFAaxXDU1TgHrxPMlRFwtBo=";
19 };
20
21 buildInputs = lib.optionals supportCompressedPackets [
22 zlib
23 bzip2
24 ];
25
26 meta = with lib; {
27 description = "PGP packet visualizer";
28 mainProgram = "pgpdump";
29 longDescription = ''
30 pgpdump is a PGP packet visualizer which displays the packet format of
31 OpenPGP (RFC 4880) and PGP version 2 (RFC 1991).
32 '';
33 homepage = "http://www.mew.org/~kazu/proj/pgpdump/en/";
34 license = licenses.bsd3;
35 platforms = platforms.unix;
36 maintainers = with maintainers; [ ];
37 };
38}