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