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 ? [],
|
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" (''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue