diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/bubblegum/default.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/web/bubblegum/default.nix b/web/bubblegum/default.nix index d9b106dddedd..ed4e48839b89 100644 --- a/web/bubblegum/default.nix +++ b/web/bubblegum/default.nix @@ -5,6 +5,7 @@ let inherit (depot.nix) runExecline getBins + utils ; statusCodes = { @@ -179,16 +180,13 @@ let # the input path or name of the input derivation. # Must be given if the input is a string. , name ? null - }: + , ... + }@args: input: let drvName = - if name != null - then name - else if builtins.isPath input - then baseNameOf input - else if lib.isDerivation input - then input.name - else builtins.throw "Need name"; + if builtins.isString input || args ? name + then args.name + else utils.storePathName input; script = if builtins.isPath input || lib.isDerivation input then input |