p7zip: fix determinism of compressed manpages
diffoscope shown non-determinism in embedded gzip timestamp:
--- p7zip-17.04/share/man/man1/7z.1.gz
+++ p7zip-17.04.check/share/man/man1/7z.1.gz
─ filetype from file(1)
@@ -1 +1 @@
-gzip compressed data, was "7z.1", last modified: Fri Oct 1 14:14:55 2021, from Unix
+gzip compressed data, was "7z.1", last modified: Sat Oct 9 08:15:33 2021, from Unix
Fix it by using `gzip -n`.
commitedf8f5d054d878adba911c8fdb26ecba19ae4db4
authorSergei Trofimovich <slyich@gmail.com>
dateSat 9 Oct 2021, 09:14 (5 years ago)
parentf9fbffd
pkgs/tools/archivers/p7zip/default.nix+3
@@ -14,6 +14,9 @@ stdenv.mkDerivation rec {
1414 # Default makefile is full of impurities on Darwin. The patch doesn't hurt Linux so I'm leaving it unconditional
1515 postPatch = ''
1616 sed -i '/CC=\/usr/d' makefile.macosx_llvm_64bits
17+ # Avoid writing timestamps into compressed manpages
18+ # to maintain determinism.
19+ substituteInPlace install.sh --replace 'gzip' 'gzip -n'
1720 chmod +x install.sh
1821
1922 # I think this is a typo and should be CXX? Either way let's kill it