Unverified Commit e6090800 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

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

parents 50200de3 fcbf9c64
Loading
Loading
Loading
Loading
+12 −19
Original line number Diff line number Diff line
@@ -4,22 +4,15 @@
, callPackage
}:

let
  patchPpdFilesHook = makeSetupHook
    {
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
  {
  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";
    meta.maintainers = [ lib.maintainers.yarny ];
  }
)
  meta = {
    description = "setup hook to patch executable paths in ppd files";
    maintainers = [ lib.maintainers.yarny ];
  };
} ./patch-ppd-hook.sh