about summary refs log tree commit diff
path: root/nixpkgs/pkgs/build-support/fetchsavannah/default.nix
blob: e75e25fc1e70b64803ee94647d3edfbc1fffb03a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ fetchzip, lib }:

lib.makeOverridable (
# 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; }
)