about summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/patch-ppd-files/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/setup-hooks/patch-ppd-files/default.nix')
-rw-r--r--pkgs/build-support/setup-hooks/patch-ppd-files/default.nix31
1 files changed, 12 insertions, 19 deletions
diff --git a/pkgs/build-support/setup-hooks/patch-ppd-files/default.nix b/pkgs/build-support/setup-hooks/patch-ppd-files/default.nix
index b3c7b19f37325..854f857020aaa 100644
--- a/pkgs/build-support/setup-hooks/patch-ppd-files/default.nix
+++ b/pkgs/build-support/setup-hooks/patch-ppd-files/default.nix
@@ -4,22 +4,15 @@
 , callPackage
 }:
 
-let
-  patchPpdFilesHook = makeSetupHook
-    {
-      name = "patch-ppd-files";
-      substitutions.which = lib.attrsets.getBin which;
-      substitutions.awkscript = ./patch-ppd-lines.awk;
-    }
-    ./patch-ppd-hook.sh;
-in
-
-patchPpdFilesHook.overrideAttrs (
-  lib.trivial.flip
-  lib.attrsets.recursiveUpdate
-  {
-    passthru.tests.test = callPackage ./test.nix {};
-    meta.description = "setup hook to patch executable paths in ppd files";
-    meta.maintainers = [ lib.maintainers.yarny ];
-  }
-)
+makeSetupHook {
+  name = "patch-ppd-files";
+  substitutions = {
+    which = lib.getBin which;
+    awkscript = ./patch-ppd-lines.awk;
+  };
+  passthru.tests.test = callPackage ./test.nix {};
+  meta = {
+    description = "setup hook to patch executable paths in ppd files";
+    maintainers = [ lib.maintainers.yarny ];
+  };
+} ./patch-ppd-hook.sh