8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
10 lines
374 B
Nix
10 lines
374 B
Nix
{ 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; }
|