2024-05-02 00:46:19 +00:00
|
|
|
{ fetchzip, lib }:
|
|
|
|
|
|
|
|
lib.makeOverridable (
|
|
|
|
# cgit example, snapshot support is optional in cgit
|
2024-05-21 09:06:35 +00:00
|
|
|
{
|
|
|
|
repo,
|
|
|
|
rev,
|
|
|
|
name ? "source-savannah.gnu.org-${repo}-${rev}",
|
2024-05-02 00:46:19 +00:00
|
|
|
... # For hash agility
|
|
|
|
}@args:
|
|
|
|
fetchzip (
|
|
|
|
{
|
|
|
|
inherit name;
|
|
|
|
url = "https://git.savannah.gnu.org/cgit/${repo}.git/snapshot/${repo}-${rev}.tar.gz";
|
|
|
|
meta.homepage = "https://git.savannah.gnu.org/cgit/${repo}.git/";
|
|
|
|
}
|
|
|
|
// removeAttrs args [
|
|
|
|
"repo"
|
|
|
|
"rev"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
// {
|
|
|
|
inherit rev;
|
|
|
|
}
|
|
|
|
)
|