Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
10 lines
340 B
Nix
10 lines
340 B
Nix
{ fetchzip }:
|
|
|
|
# gitweb example, snapshot support is optional in gitweb
|
|
{ repo, rev, name ? "source"
|
|
, ... # For hash agility
|
|
}@args: fetchzip ({
|
|
inherit name;
|
|
url = "https://repo.or.cz/${repo}.git/snapshot/${rev}.tar.gz";
|
|
meta.homepage = "https://repo.or.cz/${repo}.git/";
|
|
} // removeAttrs args [ "repo" "rev" ]) // { inherit rev; }
|