patch-ppd-files: use `meta` and `passthru` directly

When I authored the nix file in
335a9083b02d2a7034dd98c8641f019e85e50426,
`makeSetupHook` didn't know about `passthru` or `meta`.
So I foisted these attributes on the
derivation with `.overrideAttrs`.

Commits ba895a7da8f86c6f924fc96026d8f1cb1ea2af1e and
48034046bf6271d44f7dea4c1ba97196b3b105a7 enabled
`makeSetupHook` to receive these attributes directly.
It seems advisable to use that instead of `.overrideAttrs`.

Yarny0 fcbf9c64 db24d86d

+12 -19
+12 -19
pkgs/build-support/setup-hooks/patch-ppd-files/default.nix
··· 4 4 , callPackage 5 5 }: 6 6 7 - let 8 - patchPpdFilesHook = makeSetupHook 9 - { 10 - name = "patch-ppd-files"; 11 - substitutions.which = lib.attrsets.getBin which; 12 - substitutions.awkscript = ./patch-ppd-lines.awk; 13 - } 14 - ./patch-ppd-hook.sh; 15 - in 16 - 17 - patchPpdFilesHook.overrideAttrs ( 18 - lib.trivial.flip 19 - lib.attrsets.recursiveUpdate 20 - { 21 - passthru.tests.test = callPackage ./test.nix {}; 22 - meta.description = "setup hook to patch executable paths in ppd files"; 23 - meta.maintainers = [ lib.maintainers.yarny ]; 24 - } 25 - ) 7 + makeSetupHook { 8 + name = "patch-ppd-files"; 9 + substitutions = { 10 + which = lib.getBin which; 11 + awkscript = ./patch-ppd-lines.awk; 12 + }; 13 + passthru.tests.test = callPackage ./test.nix {}; 14 + meta = { 15 + description = "setup hook to patch executable paths in ppd files"; 16 + maintainers = [ lib.maintainers.yarny ]; 17 + }; 18 + } ./patch-ppd-hook.sh