1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/tools/misc/gotify-cli/default.nix

27 lines
645 B
Nix
Raw Normal View History

{ 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";
};
vendorSha256 = "1lhhsf944gm1p6qxn05g2s3hdnra5dggj7pdrdq6qr6r2xg7f5qh";
2019-10-05 20:15:32 +01:00
postInstall = ''
mv $out/bin/cli $out/bin/gotify
'';
meta = with lib; {
2019-10-05 20:15:32 +01:00
license = licenses.mit;
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 ];
};
}