Merge pull request #224178 from Yarny0/patch-ppd-files-meta

This commit is contained in:
Artturi 2023-04-30 21:15:46 +03:00 committed by GitHub
commit e6090800bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,22 +4,15 @@
, callPackage
}:
let
patchPpdFilesHook = makeSetupHook
{
name = "patch-ppd-files";
substitutions.which = lib.attrsets.getBin which;
substitutions.awkscript = ./patch-ppd-lines.awk;
}
./patch-ppd-hook.sh;
in
patchPpdFilesHook.overrideAttrs (
lib.trivial.flip
lib.attrsets.recursiveUpdate
{
passthru.tests.test = callPackage ./test.nix {};
meta.description = "setup hook to patch executable paths in ppd files";
meta.maintainers = [ lib.maintainers.yarny ];
}
)
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