mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-24 18:16:21 +03:00
andcli: init at 2.1.3
This commit is contained in:
parent
20bbc34557
commit
007a2be65f
1 changed files with 39 additions and 0 deletions
39
pkgs/by-name/an/andcli/package.nix
Normal file
39
pkgs/by-name/an/andcli/package.nix
Normal 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";
|
||||||
|
};
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue