94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
18 lines
391 B
Nix
18 lines
391 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
|