depot/third_party/nixpkgs/pkgs/tools/misc/gotify-cli/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
773 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "gotify-cli";
version = "2.2.3";
src = fetchFromGitHub {
owner = "gotify";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-mOIomHNA20gKU7uh2Sf4NqqLNjNnD5hgOTUu9DuduiI=";
};
vendorHash = "sha256-ObJfUIy2GwogFm2/uCmShEXnIxDTqWWXCZPu9KJVFOA=";
postInstall = ''
mv $out/bin/cli $out/bin/gotify
'';
ldflags = [
"-X main.Version=${version}" "-X main.Commit=${version}" "-X main.BuildDate=1970-01-01"
];
meta = with lib; {
license = licenses.mit;
homepage = "https://github.com/gotify/cli";
description = "Command line interface for pushing messages to gotify/server";
maintainers = with maintainers; [ ];
mainProgram = "gotify";
};
}