2020-03-27 07:33:21 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2019-10-05 20:15:32 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gotify-cli";
|
|
|
|
version = "2.1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gotify";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "131gs6xzfggnrzq5jgyky23zvcmhx3q3hd17xvqxd02s2i9x1mg4";
|
|
|
|
};
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = "1lhhsf944gm1p6qxn05g2s3hdnra5dggj7pdrdq6qr6r2xg7f5qh";
|
2019-10-05 20:15:32 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cli $out/bin/gotify
|
|
|
|
'';
|
|
|
|
|
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";
|
2019-10-05 20:15:32 +01:00
|
|
|
description = "A command line interface for pushing messages to gotify/server.";
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|