From 94d2bea2af56f82675d243e4313fe8cbd3f6ae6a Mon Sep 17 00:00:00 2001 From: lucasew Date: Thu, 16 Oct 2025 10:32:58 -0300 Subject: [PATCH] tocaia: init at 0.9.0 Signed-off-by: lucasew --- pkgs/by-name/to/tocaia/package.nix | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/to/tocaia/package.nix diff --git a/pkgs/by-name/to/tocaia/package.nix b/pkgs/by-name/to/tocaia/package.nix new file mode 100644 index 000000000000..1ba0b6493120 --- /dev/null +++ b/pkgs/by-name/to/tocaia/package.nix @@ -0,0 +1,39 @@ +{ + lib, + stdenv, + fetchFromGitHub, + gitUpdater, + versionCheckHook, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "tocaia"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "manipuladordedados"; + repo = "tocaia"; + tag = finalAttrs.version; + hash = "sha256-Np+Awn5KGoAbeoUEkcAeVwnNCqI2Iy+19Zj1RkNfgXU="; + }; + + makeFlags = [ "PREFIX=$(out)" ]; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + + passthru.updateScript = gitUpdater { }; + + meta = { + description = "Portable TUI Gopher client written in C89 for POSIX systems"; + homepage = "https://github.com/manipuladordedados/tocaia"; + changelog = "https://github.com/manipuladordedados/tocaia/releases/tag/${finalAttrs.version}"; + license = lib.licenses.bsd2; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ manipuladordedados ]; + mainProgram = "tocaia"; + }; +})