pkgs/den-http-get-updater: add extraPackages argument

useful for contentParser argument
This commit is contained in:
Wroclaw 2025-04-07 19:41:27 +02:00
parent 5cedeec18c
commit 1ade763161

View file

@ -25,6 +25,9 @@
# #
prefetchList ? [], prefetchList ? [],
# extra packages to add to the path
extraPackages ? [],
# change newVersion variable in it, if the contents of the page # change newVersion variable in it, if the contents of the page
# is not plaintext version # is not plaintext version
# (json for example) # (json for example)
@ -63,12 +66,12 @@ let
nixUnpack = lib.optionalString unpack "--unpack"; nixUnpack = lib.optionalString unpack "--unpack";
nixName = lib.optionalString (!builtins.isNull name) "--name \"${lib.escapeShellArg name}\""; nixName = lib.optionalString (!builtins.isNull name) "--name \"${lib.escapeShellArg name}\"";
path = lib.makeBinPath [ path = lib.makeBinPath ([
curl curl
gawk gawk
jq jq
nix nix
]; ] ++ extraPackages);
in in
writeScript "den-http-get-updater" ('' writeScript "den-http-get-updater" (''