core/pkgs/build-support/fetchrepoorcz/default.nix
2024-05-13 22:24:10 +01:00

13 lines
341 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;
}