mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #538419
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
testers,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "gogcli";
|
|
version = "0.29.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openclaw";
|
|
repo = "gogcli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-JunPpEzbNp00uEiJ7AzouXyzFwyNLehLU7mwL3eh4bM=";
|
|
};
|
|
|
|
vendorHash = "sha256-JrRIUYpw2lAD0ezi0HTZvS42OS7vP8DAHU3m0u3eCbM=";
|
|
|
|
subPackages = [ "cmd/gog" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/steipete/gogcli/internal/cmd.version=v${finalAttrs.version}"
|
|
"-X github.com/steipete/gogcli/internal/cmd.commit=${finalAttrs.src.rev}"
|
|
"-X github.com/steipete/gogcli/internal/cmd.date=1970-01-01T00:00:00Z"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
command = "gog --version";
|
|
version = "v${finalAttrs.version}";
|
|
};
|
|
|
|
meta = {
|
|
description = "CLI tool for interacting with Google APIs (Gmail, Calendar, Drive, and more)";
|
|
homepage = "https://github.com/openclaw/gogcli";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ macalinao ];
|
|
mainProgram = "gog";
|
|
};
|
|
})
|