From 66cafe6c0f4a27f16564ebcd6934b1ac9cc48137 Mon Sep 17 00:00:00 2001 From: DuskyElf <91879372+DuskyElf@users.noreply.github.com> Date: Sun, 12 Jul 2026 16:55:37 +0530 Subject: [PATCH] txm: init at 0.1.4 Assisted-by: pi-coding-agent/opencode-zen-big-pickle-2026-07-12 --- pkgs/by-name/tx/txm/package.nix | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/tx/txm/package.nix diff --git a/pkgs/by-name/tx/txm/package.nix b/pkgs/by-name/tx/txm/package.nix new file mode 100644 index 000000000000..300cdec3a808 --- /dev/null +++ b/pkgs/by-name/tx/txm/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "txm"; + version = "0.1.4"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "thatmagicalcat"; + repo = "txm"; + tag = "v${finalAttrs.version}"; + hash = "sha256-TV2vDQRH4KV+id7pPtG3Wjbfz/V60RS3wfIvKTP90iE="; + }; + + cargoHash = "sha256-ZGoIIPuDZUata7YmKOMCYcwc8Dlxo0s8W6eogK8qWsE="; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Terminal math rendering engine with LaTeX support"; + homepage = "https://github.com/thatmagicalcat/txm"; + changelog = "https://github.com/thatmagicalcat/txm/releases/tag/v${finalAttrs.src.tag}"; + license = with lib.licenses; [ + mit + asl20 + ]; + maintainers = with lib.maintainers; [ DuskyElf ]; + mainProgram = "txm"; + platforms = lib.platforms.all; + }; +})