mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
11 lines
374 B
Nix
11 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; }
|