Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
13 lines
475 B
Nix
13 lines
475 B
Nix
{ 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; }
|
|
)
|