mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
91eea5481c
Function fetchFromGitea downloads source as tarball from gitea service instead of cloning whole repository, which is more bandwidth and cpu efficient.
24 lines
510 B
Nix
24 lines
510 B
Nix
{ lib, buildGoModule, fetchFromGitea }:
|
|
|
|
buildGoModule rec {
|
|
pname = "tea";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "gitea.com";
|
|
owner = "gitea";
|
|
repo = "tea";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Kq+A6YELfBJ04t7pPnX8Ulh4NSMFn3AHggplLD9J8MY=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
meta = with lib; {
|
|
description = "Gitea official CLI client";
|
|
homepage = "https://gitea.com/gitea/tea";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.j4m3s ];
|
|
};
|
|
}
|