mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 22:47:49 +00:00
tea: use fetchFromGitea instead of fetchgit
Function fetchFromGitea downloads source as tarball from gitea service instead of cloning whole repository, which is more bandwidth and cpu efficient.
This commit is contained in:
parent
1fdd3cc60d
commit
91eea5481c
@ -1,11 +1,13 @@
|
||||
{ lib, buildGoModule, fetchgit }:
|
||||
{ lib, buildGoModule, fetchFromGitea }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "tea";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://gitea.com/gitea/tea";
|
||||
src = fetchFromGitea {
|
||||
domain = "gitea.com";
|
||||
owner = "gitea";
|
||||
repo = "tea";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Kq+A6YELfBJ04t7pPnX8Ulh4NSMFn3AHggplLD9J8MY=";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user