core/pkgs/build-support/fetchrepoorcz/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
373 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ 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;
}