Files
nixpkgs/pkgs/by-name/pa/patchPpdFilesHook/package.nix
2026-05-25 13:48:20 +02:00

21 lines
430 B
Nix

{
lib,
makeSetupHook,
which,
callPackage,
}:
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";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.yarny ];
};
} ./patch-ppd-hook.sh