core/pkgs/build-support/setup-hooks/patch-ppd-files/default.nix
2024-06-30 09:12:46 +01:00

20 lines
398 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";
maintainers = [ lib.maintainers.yarny ];
};
} ./patch-ppd-hook.sh