2020-03-27 07:33:21 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2019-10-05 20:15:32 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gotify-cli";
|
2021-12-19 15:15:08 +00:00
|
|
|
version = "2.2.1";
|
2019-10-05 20:15:32 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gotify";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2021-12-19 15:15:08 +00:00
|
|
|
sha256 = "sha256-X41m7bCilDgnTMJy3ISz8g7dAtaz/lphwaCPZDGMDXk=";
|
2019-10-05 20:15:32 +01:00
|
|
|
};
|
|
|
|
|
2021-12-19 15:15:08 +00:00
|
|
|
vendorSha256 = "sha256-EKscJM8r1dbKRQPSZFwFqJYACkQynIS347460PuxQiU=";
|
2020-08-04 01:26:27 +01:00
|
|
|
|
2019-10-05 20:15:32 +01:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cli $out/bin/gotify
|
|
|
|
'';
|
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags = [
|
|
|
|
"-X main.Version=${version}" "-X main.Commit=${version}" "-X main.BuildDate=1970-01-01"
|
2020-09-12 22:41:49 +01:00
|
|
|
];
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-10-05 20:15:32 +01:00
|
|
|
license = licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gotify/cli";
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "A command line interface for pushing messages to gotify/server";
|
2019-10-05 20:15:32 +01:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|