nixpkgs/pkgs/tools/misc/gotify-cli/default.nix

31 lines
754 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2019-10-05 19:15:32 +00:00
buildGoModule rec {
pname = "gotify-cli";
version = "2.2.1";
2019-10-05 19:15:32 +00:00
src = fetchFromGitHub {
owner = "gotify";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-X41m7bCilDgnTMJy3ISz8g7dAtaz/lphwaCPZDGMDXk=";
2019-10-05 19:15:32 +00:00
};
2022-01-31 18:43:48 +00:00
vendorSha256 = "sha256-DvpdmURhOxDVFJiRtTGVw6u6y+s5XteT1owmdBJcKHA=";
2019-10-05 19:15:32 +00:00
postInstall = ''
mv $out/bin/cli $out/bin/gotify
'';
2021-08-26 06:45:51 +00:00
ldflags = [
"-X main.Version=${version}" "-X main.Commit=${version}" "-X main.BuildDate=1970-01-01"
];
meta = with lib; {
2019-10-05 19:15:32 +00:00
license = licenses.mit;
homepage = "https://github.com/gotify/cli";
description = "A command line interface for pushing messages to gotify/server";
2019-10-05 19:15:32 +00:00
maintainers = with maintainers; [ ma27 ];
};
}