cups-drv-rastertosag-gdi (cups driver): patch ppd bin paths

The `cups-drv-rastertosag-gdi` CUPS printer driver
package provides a filter executable `rastertosag-gdi`
and two ppd files that reference the filter file.
The commit at hand uses `patchPpdFilesHook` to
replace calls to the filter executable with
absolute paths to increase package purity.

Yarny0 ef8566f3 335a9083

+3 -1
+3 -1
pkgs/misc/cups/drivers/cups-drv-rastertosag-gdi/default.nix
··· 3 , fetchpatch 4 , cups 5 , python3Packages 6 }: 7 8 python3Packages.buildPythonApplication rec { ··· 20 }) 21 ]; 22 format = "other"; 23 - nativeBuildInputs = [ (lib.getBin cups) ]; 24 # The source image also brings pre-built ppd files, 25 # but we prefer to generate from source where possible, so 26 # the following line generates ppd files from the drv file. ··· 35 ln -vst "${placeholder "out"}/lib/cups/filter/" "${placeholder "out"}/bin/rastertosag-gdi" 36 runHook postInstall 37 ''; 38 postFixup = '' 39 gzip -9nv "${placeholder "out"}/share/cups/model/rastertosag-gdi"/*.ppd 40 '';
··· 3 , fetchpatch 4 , cups 5 , python3Packages 6 + , patchPpdFilesHook 7 }: 8 9 python3Packages.buildPythonApplication rec { ··· 21 }) 22 ]; 23 format = "other"; 24 + nativeBuildInputs = [ (lib.getBin cups) patchPpdFilesHook ]; 25 # The source image also brings pre-built ppd files, 26 # but we prefer to generate from source where possible, so 27 # the following line generates ppd files from the drv file. ··· 36 ln -vst "${placeholder "out"}/lib/cups/filter/" "${placeholder "out"}/bin/rastertosag-gdi" 37 runHook postInstall 38 ''; 39 + ppdFileCommands = [ "rastertosag-gdi" ]; 40 postFixup = '' 41 gzip -9nv "${placeholder "out"}/share/cups/model/rastertosag-gdi"/*.ppd 42 '';