pkgs/den-http-get-updater: add extraPackages argument
useful for contentParser argument
This commit is contained in:
parent
5cedeec18c
commit
1ade763161
1 changed files with 5 additions and 2 deletions
|
@ -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" (''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue