summary refs log blame commit diff
path: root/pkgs/build-support/fetchrepoorcz/default.nix
blob: 3ac7cace0dcf7073e1dfb015aef1f357e5d95490 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                
{ fetchzip }:

# gitweb example, snapshot support is optional in gitweb
{ repo, rev, name ? "source"
, ... # 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; }