nixpkgs/pkgs/tools/misc/gotify-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
775 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
2019-10-05 19:15:32 +00:00
buildGoModule rec {
pname = "gotify-cli";
2023-05-14 16:49:03 +00:00
version = "2.2.3";
2019-10-05 19:15:32 +00:00
src = fetchFromGitHub {
owner = "gotify";
repo = "cli";
rev = "v${version}";
2023-05-14 16:49:03 +00:00
sha256 = "sha256-mOIomHNA20gKU7uh2Sf4NqqLNjNnD5hgOTUu9DuduiI=";
2019-10-05 19:15:32 +00:00
};
2023-05-14 16:49:03 +00:00
vendorHash = "sha256-ObJfUIy2GwogFm2/uCmShEXnIxDTqWWXCZPu9KJVFOA=";
2019-10-05 19:15:32 +00:00
postInstall = ''
mv $out/bin/cli $out/bin/gotify
'';
2021-08-26 06:45:51 +00:00
ldflags = [
"-X main.Version=${version}" "-X main.Commit=${version}" "-X main.BuildDate=1970-01-01"
];
meta = with lib; {
2019-10-05 19:15:32 +00:00
license = licenses.mit;
homepage = "https://github.com/gotify/cli";
description = "A command line interface for pushing messages to gotify/server";
maintainers = with maintainers; [ ];
mainProgram = "gotify";
2019-10-05 19:15:32 +00:00
};
}