at 23.05-pre 782 B view raw
1{ buildGoModule, fetchFromGitHub, lib }: 2 3buildGoModule rec { 4 pname = "gotify-cli"; 5 version = "2.2.2"; 6 7 src = fetchFromGitHub { 8 owner = "gotify"; 9 repo = "cli"; 10 rev = "v${version}"; 11 sha256 = "sha256-dkG2dzt2PvIio+1/yx8Ihui6WjwvbBHlhJcoXADZBl4="; 12 }; 13 14 vendorSha256 = "sha256-0Utc1rGaFpDXhxMZ8bwMCYbfAyqNiQKtyqZMdhBujMs="; 15 16 postInstall = '' 17 mv $out/bin/cli $out/bin/gotify 18 ''; 19 20 ldflags = [ 21 "-X main.Version=${version}" "-X main.Commit=${version}" "-X main.BuildDate=1970-01-01" 22 ]; 23 24 meta = with lib; { 25 license = licenses.mit; 26 homepage = "https://github.com/gotify/cli"; 27 description = "A command line interface for pushing messages to gotify/server"; 28 maintainers = with maintainers; [ ma27 ]; 29 mainProgram = "gotify"; 30 }; 31}