mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
ttt: init at 1.8.0 (#566783)
This commit is contained in:
37
pkgs/by-name/tt/ttt/package.nix
Normal file
37
pkgs/by-name/tt/ttt/package.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "ttt";
|
||||
version = "1.8.0";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eugenioenko";
|
||||
repo = "ttt";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-ousuIOWk3TRvPB3cilTXHhhAia0Hn+MUykr7uotA7f8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-DUyYhsMzjyhW2vtMRkSUKVBvcgJYZi5iUNVKw48l3+Q=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-X main.version=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
subPackages = [ "cmd/ttt" ];
|
||||
|
||||
meta = {
|
||||
description = "IDE that lives in your terminal";
|
||||
homepage = "http://tttedit.dev";
|
||||
downloadPage = "https://github.com/eugenioenko/ttt";
|
||||
changelog = "https://github.com/eugenioenko/ttt/releases/tag/v${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ zendo ];
|
||||
mainProgram = "ttt";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user