1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, nix-update-script }:
4 pname = "globalping-cli";
7 src = fetchFromGitHub {
11 hash = "sha256-9FMp3cGJr8RdySZvSflYa91uaIV5wVl6WmUDvbRkSFY=";
14 vendorHash = "sha256-3VqCgkyhPKk5iBkKOK2EajEKgEnCHOQjO59AKFafQHc=";
16 nativeBuildInputs = [ installShellFiles ];
19 ldflags = [ "-s" "-w" "-X main.version=${version}" ];
22 mv $out/bin/${pname} $out/bin/globalping
23 installShellCompletion --cmd globalping \
24 --bash <($out/bin/globalping completion bash) \
25 --fish <($out/bin/globalping completion fish) \
26 --zsh <($out/bin/globalping completion zsh)
29 passthru.updateScript = nix-update-script { };
32 description = "A simple CLI tool to run networking commands remotely from hundreds of globally distributed servers";
33 homepage = "https://www.jsdelivr.com/globalping/cli";
34 license = licenses.mpl20;
35 maintainers = with maintainers; [ xyenon ];
36 mainProgram = "globalping";