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









                                                                                       
{ fetchzip }:

# cgit example, snapshot support is optional in cgit
{ repo, rev, name ? "source"
, ... # For hash agility
}@args: fetchzip ({
  inherit name;
  url = "https://git.savannah.gnu.org/cgit/${repo}.git/snapshot/${repo}-${rev}.tar.gz";
  meta.homepage = "https://git.savannah.gnu.org/cgit/${repo}.git/";
} // removeAttrs args [ "repo" "rev" ]) // { inherit rev; }