From af3a11b8f60644730368f432a279226a39d947e4 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 4 Nov 2017 21:21:28 +0100 Subject: [PATCH] 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 --- pkgs/tools/security/pgpdump/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/pgpdump/default.nix b/pkgs/tools/security/pgpdump/default.nix index 93b53c3ad4a..09b5b5f58ca 100644 --- a/pkgs/tools/security/pgpdump/default.nix +++ b/pkgs/tools/security/pgpdump/default.nix @@ -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 = ''