mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
hplip: add -n to gzip to improve reproducibility
(cherry picked from commit 1422563f54)
This commit is contained in:
committed by
github-actions[bot]
parent
607be851e4
commit
91469eef74
@@ -101,10 +101,11 @@ python3Packages.buildPythonApplication {
|
||||
./hplip-3.20.11-nixos-cups-ppd-search-path.patch
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
postPatch = ''
|
||||
# https://github.com/NixOS/nixpkgs/issues/44230
|
||||
substituteInPlace createPPD.sh \
|
||||
--replace ppdc "${cups}/bin/ppdc"
|
||||
--replace ppdc "${cups}/bin/ppdc" \
|
||||
--replace "gzip -c" "gzip -cn"
|
||||
|
||||
# HPLIP hardcodes absolute paths everywhere. Nuke from orbit.
|
||||
find . -type f -exec sed -i \
|
||||
@@ -153,6 +154,12 @@ python3Packages.buildPythonApplication {
|
||||
export CUPS_DATADIR="${cups}/share/cups"
|
||||
'';
|
||||
|
||||
postConfigure = ''
|
||||
# don't save timestamp, in order to improve reproducibility
|
||||
substituteInPlace Makefile \
|
||||
--replace "GZIP_ENV = --best" "GZIP_ENV = --best -n"
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user