Merge pull request #141081 from trofi/fix-p7zip-determinism

p7zip: fix determinism of compressed manpages

Changed files
+3
pkgs
tools
archivers
p7zip
+3
pkgs/tools/archivers/p7zip/default.nix
···
# Default makefile is full of impurities on Darwin. The patch doesn't hurt Linux so I'm leaving it unconditional
postPatch = ''
sed -i '/CC=\/usr/d' makefile.macosx_llvm_64bits
chmod +x install.sh
# I think this is a typo and should be CXX? Either way let's kill it
···
# Default makefile is full of impurities on Darwin. The patch doesn't hurt Linux so I'm leaving it unconditional
postPatch = ''
sed -i '/CC=\/usr/d' makefile.macosx_llvm_64bits
+
# Avoid writing timestamps into compressed manpages
+
# to maintain determinism.
+
substituteInPlace install.sh --replace 'gzip' 'gzip -n'
chmod +x install.sh
# I think this is a typo and should be CXX? Either way let's kill it