andcli: init at 2.1.3

This commit is contained in:
Pascal Dietrich 2025-05-05 21:45:18 +02:00
parent 20bbc34557
commit 007a2be65f

View file

@ -0,0 +1,39 @@
{
lib,
fetchFromGitHub,
buildGoModule,
}:
buildGoModule (finalAttrs: {
pname = "andcli";
version = "2.1.3";
subPackages = [ "cmd/andcli" ];
src = fetchFromGitHub {
owner = "tjblackheart";
repo = "andcli";
tag = "v${finalAttrs.version}";
hash = "sha256-MfhChaowSkCggeyubYdlcmU3+dd+yXlVrgdr85xjlI8=";
};
vendorHash = "sha256-C5XW3nxTUjcH6YaFYSxuKdtMF5SvrbOjErWIQXNwSJA=";
ldflags = [
"-s"
"-w"
"-X github.com/tjblackheart/andcli/v2/internal/buildinfo.Commit=${finalAttrs.src.tag}"
"-X github.com/tjblackheart/andcli/v2/internal/buildinfo.AppVersion=${finalAttrs.src.tag}"
];
# As stated in #404465 the versionCheckHook does not work so it is not used here
meta = {
homepage = "https://github.com/tjblackheart/andcli";
description = "2FA TUI for your shell";
changelog = "https://github.com/tjblackheart/andcli/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Cameo007 ];
mainProgram = "andcli";
};
})