1{ fetchzip }:
2
3# gitweb example, snapshot support is optional in gitweb
4{ repo, rev, name ? "source"
5, ... # For hash agility
6}@args: fetchzip ({
7 inherit name;
8 url = "https://repo.or.cz/${repo}.git/snapshot/${rev}.tar.gz";
9 meta.homepage = "https://repo.or.cz/${repo}.git/";
10} // removeAttrs args [ "repo" "rev" ]) // { inherit rev; }