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