2020-04-24 23:36:52 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gotify-cli";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.2.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gotify";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-Hzdd9T8RcLxHG+vHb4KuKqW4SwcWDrVc6DZ0QUpH2Xc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-+G0LWlPiDcYmEou4gpoIU/OAjzQ3VSHftM1ViG9lhYM=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cli $out/bin/gotify
|
|
|
|
'';
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.Version=${version}" "-X main.Commit=${version}" "-X main.BuildDate=1970-01-01"
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/gotify/cli";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command line interface for pushing messages to gotify/server";
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "gotify";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|