2020-03-27 07:33:21 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2019-10-05 19:15:32 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gotify-cli";
|
2022-07-28 13:30:10 +00:00
|
|
|
version = "2.2.2";
|
2019-10-05 19:15:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gotify";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2022-07-28 13:30:10 +00:00
|
|
|
sha256 = "sha256-dkG2dzt2PvIio+1/yx8Ihui6WjwvbBHlhJcoXADZBl4=";
|
2019-10-05 19:15:32 +00:00
|
|
|
};
|
|
|
|
|
2022-07-28 13:30:10 +00:00
|
|
|
vendorSha256 = "sha256-0Utc1rGaFpDXhxMZ8bwMCYbfAyqNiQKtyqZMdhBujMs=";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
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"
|
2020-09-12 21:41:49 +00:00
|
|
|
];
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-10-05 19:15:32 +00:00
|
|
|
license = licenses.mit;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/gotify/cli";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A command line interface for pushing messages to gotify/server";
|
2023-01-15 17:52:27 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "gotify";
|
2019-10-05 19:15:32 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|