Merge pull request #141081 from trofi/fix-p7zip-determinism
p7zip: fix determinism of compressed manpages
commitd86eb3b53e9d8b06358647c1695c20e3602057bc
authorMichael Raskin <7c6f434c@mail.ru>
dateSat 9 Oct 2021, 13:19 (5 years ago)
parent336a200edf8f5d
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