From 5142ac72496fe5938b04a25ebbeea840dc549fd7 Mon Sep 17 00:00:00 2001 From: chillcicada <2210227279@qq.com> Date: Sun, 1 Mar 2026 16:30:30 +0800 Subject: [PATCH] t-lang: init at 0.3.1 --- pkgs/by-name/t-/t-lang/package.nix | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/t-/t-lang/package.nix diff --git a/pkgs/by-name/t-/t-lang/package.nix b/pkgs/by-name/t-/t-lang/package.nix new file mode 100644 index 000000000000..c0084be3619a --- /dev/null +++ b/pkgs/by-name/t-/t-lang/package.nix @@ -0,0 +1,35 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "t-lang"; + version = "0.3.1"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "alecthomas"; + repo = "t"; + tag = "v${finalAttrs.version}"; + hash = "sha256-J/lQ5x72Z6yv/F0+n9tMLsIP4ojrbZKuUajPlvMnBsU="; + }; + + cargoHash = "sha256-86T8rOKXx6agZw6xu10YVCgP+dyuodCW1ZZlimQFcFk="; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Text processing language and utility"; + longDescription = '' + T is a concise language for manipulating text, replacing common usage + patterns of Unix utilities like grep, sed, cut, awk, sort, and uniq. + ''; + homepage = "https://github.com/alecthomas/t"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ chillcicada ]; + mainProgram = "t"; + }; +})