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

33 lines
789 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2019-10-05 20:15:32 +01:00
buildGoModule rec {
pname = "gotify-cli";
version = "2.2.0";
2019-10-05 20:15:32 +01:00
src = fetchFromGitHub {
owner = "gotify";
repo = "cli";
rev = "v${version}";
sha256 = "0hgh1i8rdmf12qmk66cgksv8hz5qzkfbfb6cfmrkhbq765xkm4ir";
2019-10-05 20:15:32 +01:00
};
vendorSha256 = "1l47s0h0v4cgqcsm5008cknvfa4vnv6f7n43d8ga0xq5ikqqzmja";
2019-10-05 20:15:32 +01:00
doCheck = false;
2019-10-05 20:15:32 +01:00
postInstall = ''
mv $out/bin/cli $out/bin/gotify
'';
buildFlagsArray = [
"-ldflags=-X main.Version=${version} -X main.Commit=${version} -X main.BuildDate=1970-01-01"
];
meta = with lib; {
2019-10-05 20:15:32 +01:00
license = licenses.mit;
homepage = "https://github.com/gotify/cli";
description = "A command line interface for pushing messages to gotify/server";
2019-10-05 20:15:32 +01:00
maintainers = with maintainers; [ ma27 ];
};
}