Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5}: 6 7buildGoModule rec { 8 pname = "gotify-cli"; 9 version = "2.3.2"; 10 11 src = fetchFromGitHub { 12 owner = "gotify"; 13 repo = "cli"; 14 rev = "v${version}"; 15 sha256 = "sha256-GwPIGWEpj5GjGV9bz3LctZctHQe+Vywoc1piNb9vAAw="; 16 }; 17 18 vendorHash = "sha256-+G0LWlPiDcYmEou4gpoIU/OAjzQ3VSHftM1ViG9lhYM="; 19 20 postInstall = '' 21 mv $out/bin/cli $out/bin/gotify 22 ''; 23 24 ldflags = [ 25 "-X main.Version=${version}" 26 "-X main.Commit=${version}" 27 "-X main.BuildDate=1970-01-01" 28 ]; 29 30 meta = with lib; { 31 license = licenses.mit; 32 homepage = "https://github.com/gotify/cli"; 33 description = "Command line interface for pushing messages to gotify/server"; 34 maintainers = [ ]; 35 mainProgram = "gotify"; 36 }; 37}