Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 27 lines 435 B view raw
1{ 2 lib, 3 repoRevToNameMaybe, 4 fetchzip, 5}: 6 7# gitweb example, snapshot support is optional in gitweb 8{ 9 repo, 10 rev, 11 name ? repoRevToNameMaybe repo rev "repoorcz", 12 ... # For hash agility 13}@args: 14fetchzip ( 15 { 16 inherit name; 17 url = "https://repo.or.cz/${repo}.git/snapshot/${rev}.tar.gz"; 18 meta.homepage = "https://repo.or.cz/${repo}.git/"; 19 } 20 // removeAttrs args [ 21 "repo" 22 "rev" 23 ] 24) 25// { 26 inherit rev; 27}