depot/third_party/nixpkgs/pkgs/tools/misc/gotify-cli/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

32 lines
790 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "gotify-cli";
version = "2.2.0";
src = fetchFromGitHub {
owner = "gotify";
repo = "cli";
rev = "v${version}";
sha256 = "0hgh1i8rdmf12qmk66cgksv8hz5qzkfbfb6cfmrkhbq765xkm4ir";
};
vendorSha256 = "1l47s0h0v4cgqcsm5008cknvfa4vnv6f7n43d8ga0xq5ikqqzmja";
doCheck = false;
postInstall = ''
mv $out/bin/cli $out/bin/gotify
'';
buildFlagsArray = [
"-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 = "A command line interface for pushing messages to gotify/server.";
maintainers = with maintainers; [ ma27 ];
};
}