nixpkgs/pkgs/build-support/fetchsavannah/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
554 B
Nix
Raw Normal View History

{ 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/";
passthru.gitRepoUrl = "https://git.savannah.gnu.org/git/${repo}.git";
}
// removeAttrs args [
"repo"
"rev"
]
)
// {
inherit rev;
}
)