mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
t-lang: init at 0.3.1
This commit is contained in:
committed by
Sandro Jäckel
parent
9d4ceecc84
commit
5142ac7249
35
pkgs/by-name/t-/t-lang/package.nix
Normal file
35
pkgs/by-name/t-/t-lang/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user