2021-12-08 18:10:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ooniprobe-cli";
|
2023-12-28 12:11:05 +00:00
|
|
|
version = "3.20.1";
|
2021-12-08 18:10:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ooni";
|
|
|
|
repo = "probe-cli";
|
|
|
|
rev = "v${version}";
|
2023-12-28 12:11:05 +00:00
|
|
|
hash = "sha256-XjIrae4HPFB1Rv8yIAUh6Xj9UVU55Wx7SuyKJ0BvmXY=";
|
2021-12-08 18:10:37 +00:00
|
|
|
};
|
|
|
|
|
2023-12-28 12:11:05 +00:00
|
|
|
vendorHash = "sha256-HYU+oS+iqdl2jQJc3h9T+MSc/Hq2W6UqP+oPSEyfcOU=";
|
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 = "The 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
|
|
|
};
|
|
|
|
}
|