1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "ooniprobe-cli";
8 version = "3.18.1";
9
10 src = fetchFromGitHub {
11 owner = "ooni";
12 repo = "probe-cli";
13 rev = "v${version}";
14 hash = "sha256-abCglaMFW6zPc53IU8Bgl/SaoIh1N9i3xDcfOnJypls=";
15 };
16
17 vendorHash = "sha256-olirtvnOIKvNXJsanv5UFTcpj7RpPAa5OP0qYTv4wtk=";
18
19 subPackages = [ "cmd/ooniprobe" ];
20
21 ldflags = [ "-s" "-w" ];
22
23 meta = with lib; {
24 changelog = "https://github.com/ooni/probe-cli/releases/tag/${src.rev}";
25 description = "The Open Observatory of Network Interference command line network probe";
26 homepage = "https://ooni.org/install/cli";
27 license = licenses.gpl3Plus;
28 maintainers = with maintainers; [ dotlambda ];
29 mainProgram = "ooniprobe";
30 };
31}