Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{
|
|
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";
|
|
};
|
|
})
|