core/pkgs/build-support/setup-hooks/patch-ppd-files/default.nix

20 lines
398 B
Nix
Raw Normal View History

2024-06-30 08:16:52 +00:00
{
lib,
makeSetupHook,
which,
callPackage,
2024-05-02 00:46:19 +00:00
}:
makeSetupHook {
name = "patch-ppd-files";
substitutions = {
which = lib.getBin which;
awkscript = ./patch-ppd-lines.awk;
};
2024-06-30 08:16:52 +00:00
passthru.tests.test = callPackage ./test.nix { };
2024-05-02 00:46:19 +00:00
meta = {
description = "setup hook to patch executable paths in ppd files";
maintainers = [ lib.maintainers.yarny ];
};
} ./patch-ppd-hook.sh