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
This commit is contained in:
Michael Weiss 2017-11-04 21:21:28 +01:00
parent 86415c9c83
commit af3a11b8f6

View File

@ -1,4 +1,6 @@
{ stdenv, fetchFromGitHub }:
{ stdenv, fetchFromGitHub
, supportCompressedPackets ? true, zlib, bzip2
}:
stdenv.mkDerivation rec {
name = "pgpdump-${version}";
@ -11,6 +13,8 @@ stdenv.mkDerivation rec {
sha256 = "1ip7q5sgh3nwdqbrzpp6sllkls5kma98kns53yspw1830xi1n8xc";
};
buildInputs = stdenv.lib.optionals supportCompressedPackets [ zlib bzip2 ];
meta = with stdenv.lib; {
description = "A PGP packet visualizer";
longDescription = ''