diff --git a/pkgs/tools/compression/pigz/default.nix b/pkgs/tools/compression/pigz/default.nix index e7a1df5fd6cd..3faab62a1e8e 100644 --- a/pkgs/tools/compression/pigz/default.nix +++ b/pkgs/tools/compression/pigz/default.nix @@ -1,16 +1,24 @@ -{ lib, stdenv, fetchFromGitHub, zlib, util-linux }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, zlib, util-linux }: stdenv.mkDerivation rec { pname = "pigz"; - version = "2.6"; + version = "2.7"; src = fetchFromGitHub { owner = "madler"; - repo = "${pname}"; + repo = pname; rev = "refs/tags/v${version}"; - sha256 = "146qkmzi199xwmmf6bllanqfyl702fm1rnad8cd5r5yyrp5ks115"; + sha256 = "sha256-RYp3vRwlI6S/lcib+3t7qLYFWv11GUnj1Cmxm9eaVro="; }; + patches = [ + # needed to build the pigzn test binary + (fetchpatch { + url = "https://github.com/madler/pigz/commit/67fd6e436f4f479aead529a719e24d6864cf1dfa.patch"; + sha256 = "sha256-FkzLYob/WIVIB7eh03cdzpLy6SzoHLqEMsWyHdMTjbU="; + }) + ]; + enableParallelBuilding = true; buildInputs = [ zlib ] ++ lib.optional stdenv.isLinux util-linux;