From 91eea5481c7c889a0817125a30bea7e85adcc27d Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 11 Jul 2021 14:53:06 -0400 Subject: [PATCH] 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. --- pkgs/tools/misc/tea/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/tea/default.nix b/pkgs/tools/misc/tea/default.nix index 06e54559db9..a7af4fec7ba 100644 --- a/pkgs/tools/misc/tea/default.nix +++ b/pkgs/tools/misc/tea/default.nix @@ -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="; };