2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, makeSetupHook
|
|
|
|
, which
|
|
|
|
, callPackage
|
|
|
|
}:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
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
|