diff --git a/default.nix b/default.nix index 2b9dc75..9e9c9ef 100644 --- a/default.nix +++ b/default.nix @@ -41,5 +41,6 @@ let myR = prev.rWrapper.override { packages = with prev.rPackages; [ ggplot2 lintr tikzDevice rlang ]; }; ledgerTools = callPackage ./ledger-tools { }; + tea = callPackage ./tea.nix {}; }; in _self diff --git a/tea.nix b/tea.nix new file mode 100644 index 0000000..ec9ec40 --- /dev/null +++ b/tea.nix @@ -0,0 +1,19 @@ +{ lib, fetchurl, buildGoModule }: +buildGoModule rec { + pname = "tea"; + version = "0.6.0"; + + src = fetchurl { + url = "https://gitea.com/gitea/tea/archive/v${version}.tar.gz"; + sha256 = "BI5iNYhb7GpFyiL7qVsWPR1ktoPy9BycYzmqzHVB+Gk="; + }; + vendorSha256 = "2bHmXSQ7XnfeBSrU+d+x9jRL7wQ3QZbrKLoZgJ9Nyv4="; + + subPackages = [ "." ]; + meta = with lib; { + description = "Gitea command-line client written in Go"; + homepage = "https://gitea.com/gitea/tea"; + license = licenses.mit; + platforms = platforms.linux ++ platforms.darwin; + }; +}