fetchFromGitea: allow overriding function name
This commit is contained in:
@@ -3,7 +3,20 @@
|
||||
{ lib, fetchFromGitHub }:
|
||||
|
||||
lib.makeOverridable (
|
||||
{ domain, ... }@args:
|
||||
{
|
||||
domain,
|
||||
functionName ? "fetchFromGitea",
|
||||
...
|
||||
}@args:
|
||||
|
||||
fetchFromGitHub ((removeAttrs args [ "domain" ]) // { githubBase = domain; })
|
||||
fetchFromGitHub (
|
||||
(removeAttrs args [
|
||||
"domain"
|
||||
"functionName"
|
||||
])
|
||||
// {
|
||||
inherit functionName;
|
||||
githubBase = domain;
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user