Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
435 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
repoRevToNameMaybe,
fetchzip,
}:
# gitweb example, snapshot support is optional in gitweb
{
repo,
rev,
name ? repoRevToNameMaybe repo rev "repoorcz",
... # For hash agility
}@args:
fetchzip (
{
inherit name;
url = "https://repo.or.cz/${repo}.git/snapshot/${rev}.tar.gz";
meta.homepage = "https://repo.or.cz/${repo}.git/";
}
// removeAttrs args [
"repo"
"rev"
]
)
// {
inherit rev;
}