tmuxai: init at 1.1.1 (#444178)

This commit is contained in:
Gaétan Lepage
2025-09-19 23:05:17 +00:00
committed by GitHub
+51
View File
@@ -0,0 +1,51 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
writableTmpDirAsHomeHook,
}:
buildGoModule (finalAttrs: {
pname = "tmuxai";
version = "1.1.1";
src = fetchFromGitHub {
owner = "alvinunreal";
repo = "tmuxai";
tag = "v${finalAttrs.version}";
hash = "sha256-L3PFyNkvEHfZ2pZFaurFKwHjhdZ+YBXtN2QuKFvktP4=";
};
vendorHash = "sha256-Ev3COZBVCACzCDbdKddJE67qMMzClZB9NHGNHHHaK7E=";
ldflags = [
"-s"
"-X=github.com/alvinunreal/tmuxai/internal.Version=v${finalAttrs.version}"
"-X=github.com/alvinunreal/tmuxai/internal.Commit=${finalAttrs.src.rev}"
"-X=github.com/alvinunreal/tmuxai/internal.Date=1970-01-01T00:00:00Z"
];
nativeInstallCheckInputs = [
versionCheckHook
writableTmpDirAsHomeHook
];
versionCheckKeepEnvironment = [ "HOME" ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
__darwinAllowLocalNetworking = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "AI-Powered, Non-Intrusive Terminal Assistant";
homepage = "https://github.com/alvinunreal/tmuxai";
changelog = "https://github.com/alvinunreal/tmuxai/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ vinnymeller ];
mainProgram = "tmuxai";
};
})