nix-auth: init at 0.1.0

https://github.com/numtide/nix-auth

Assisted-by: nix-init
This commit is contained in:
Oleksii Filonenko
2026-07-07 15:54:30 +01:00
parent 1350febcfa
commit 4cbafcce37
+42
View File
@@ -0,0 +1,42 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "nix-auth";
version = "0.1.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "numtide";
repo = "nix-auth";
tag = "v${finalAttrs.version}";
hash = "sha256-epsg+elWnZoPjFV/hc113j+JGuxL/ggcEmJJv+Niajo=";
};
vendorHash = "sha256-5X+GG5h9rZTLhDvL6m9LrU5WGT5Ev+aXZ+5ffksBIM8=";
ldflags = [
"-s"
"-w"
"-X=github.com/numtide/nix-auth/internal/version.Version=${finalAttrs.version}"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
passthru.updateScript = nix-update-script { };
meta = {
description = "Nix access-token management tool";
homepage = "https://github.com/numtide/nix-auth";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Br1ght0ne ];
mainProgram = "nix-auth";
};
})