nixpkgs/pkgs/tools/security/pgpdump/default.nix
Michael Weiss af3a11b8f6 pgpdump: Add support for compressed data packets
This will add support for compressed data packets (Tag 8) [0] and enable
it by default.

[0]: https://tools.ietf.org/html/rfc4880#section-5.6
2017-11-04 21:23:14 +01:00

31 lines
826 B
Nix

{ stdenv, fetchFromGitHub
, supportCompressedPackets ? true, zlib, bzip2
}:
stdenv.mkDerivation rec {
name = "pgpdump-${version}";
version = "0.32";
src = fetchFromGitHub {
owner = "kazu-yamamoto";
repo = "pgpdump";
rev = "v${version}";
sha256 = "1ip7q5sgh3nwdqbrzpp6sllkls5kma98kns53yspw1830xi1n8xc";
};
buildInputs = stdenv.lib.optionals supportCompressedPackets [ zlib bzip2 ];
meta = with stdenv.lib; {
description = "A PGP packet visualizer";
longDescription = ''
pgpdump is a PGP packet visualizer which displays the packet format of
OpenPGP (RFC 4880) and PGP version 2 (RFC 1991).
'';
homepage = http://www.mew.org/~kazu/proj/pgpdump/en/;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}