2022-02-10 13:40:58 +00:00
|
|
|
{ fetchzip, lib }:
|
2019-01-26 15:06:25 +00:00
|
|
|
|
2022-02-10 13:40:58 +00:00
|
|
|
lib.makeOverridable (
|
2019-01-26 15:06:25 +00:00
|
|
|
# cgit example, snapshot support is optional in cgit
|
|
|
|
{
|
|
|
|
repo,
|
|
|
|
rev,
|
|
|
|
name ? "source",
|
|
|
|
... # 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/";
|
2024-10-29 10:07:10 +00:00
|
|
|
passthru.gitRepoUrl = "https://git.savannah.gnu.org/git/${repo}.git";
|
2019-01-26 15:06:25 +00:00
|
|
|
}
|
|
|
|
// removeAttrs args [
|
|
|
|
"repo"
|
|
|
|
"rev"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
// {
|
|
|
|
inherit rev;
|
|
|
|
}
|
2022-02-10 13:40:58 +00:00
|
|
|
)
|