systemd?
This commit is contained in:
36
hosts/server/slop/gogcli.nix
Normal file
36
hosts/server/slop/gogcli.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
buildGo125Module,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGo125Module rec {
|
||||
pname = "gogcli";
|
||||
version = "0.11.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "steipete";
|
||||
repo = "gogcli";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-hJU40ysjRx4p9SWGmbhhpToYCpk3DcMAWCnKqxHRmh0=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-WGRlv3UsK3SVBQySD7uZ8+FiRl03p0rzjBm9Se1iITs=";
|
||||
|
||||
subPackages = [ "cmd/gog" ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/steipete/gogcli/internal/cmd.version=${version}"
|
||||
"-X github.com/steipete/gogcli/internal/cmd.commit=v${version}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Google workspace CLI client";
|
||||
homepage = "https://github.com/steipete/gogcli";
|
||||
license = licenses.mit;
|
||||
mainProgram = "gog";
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user