t-lang: init at 0.3.1

This commit is contained in:
chillcicada
2026-03-01 16:30:30 +08:00
committed by Sandro Jäckel
parent 9d4ceecc84
commit 5142ac7249

View File

@@ -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";
};
})