2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ooniprobe-cli";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.23.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ooni";
|
|
|
|
repo = "probe-cli";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-ey71XA/ZtN6AI/DyjqFGcY5XW9H0RoOjrmjDEIgJMkM=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-wuCqyr7JuzRHJE8ct1DRi9aFJWeHdF1sxUjvQiBMa6I=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/ooniprobe" ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
meta = with lib; {
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/ooni/probe-cli/releases/tag/${src.rev}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open Observatory of Network Interference command line network probe";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://ooni.org/install/cli";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "ooniprobe";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|