2021-12-08 18:10:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ooniprobe-cli";
|
2024-08-08 14:38:01 +00:00
|
|
|
version = "3.23.0";
|
2021-12-08 18:10:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ooni";
|
|
|
|
repo = "probe-cli";
|
|
|
|
rev = "v${version}";
|
2024-08-08 14:38:01 +00:00
|
|
|
hash = "sha256-ey71XA/ZtN6AI/DyjqFGcY5XW9H0RoOjrmjDEIgJMkM=";
|
2021-12-08 18:10:37 +00:00
|
|
|
};
|
|
|
|
|
2024-08-08 14:38:01 +00:00
|
|
|
vendorHash = "sha256-wuCqyr7JuzRHJE8ct1DRi9aFJWeHdF1sxUjvQiBMa6I=";
|
2021-12-08 18:10:37 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/ooniprobe" ];
|
|
|
|
|
2023-06-28 14:14:42 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-12-08 18:10:37 +00:00
|
|
|
meta = with lib; {
|
2023-02-28 04:51:11 +00:00
|
|
|
changelog = "https://github.com/ooni/probe-cli/releases/tag/${src.rev}";
|
2021-12-08 18:10:37 +00:00
|
|
|
description = "Open Observatory of Network Interference command line network probe";
|
|
|
|
homepage = "https://ooni.org/install/cli";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "ooniprobe";
|
2021-12-08 18:10:37 +00:00
|
|
|
};
|
|
|
|
}
|