2024-05-02 00:46:19 +00:00
|
|
|
{ fetchzip }:
|
|
|
|
|
|
|
|
# gitweb example, snapshot support is optional in gitweb
|
2024-05-13 21:24:10 +00:00
|
|
|
{ repo, rev, name ? "source", ... # For hash agility
|
|
|
|
}@args:
|
|
|
|
fetchzip ({
|
2024-05-02 00:46:19 +00:00
|
|
|
inherit name;
|
|
|
|
url = "https://repo.or.cz/${repo}.git/snapshot/${rev}.tar.gz";
|
|
|
|
meta.homepage = "https://repo.or.cz/${repo}.git/";
|
2024-05-13 21:24:10 +00:00
|
|
|
} // removeAttrs args [ "repo" "rev" ]) // {
|
|
|
|
inherit rev;
|
|
|
|
}
|