2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ooniprobe-cli";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "3.18.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ooni";
|
|
|
|
repo = "probe-cli";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-abCglaMFW6zPc53IU8Bgl/SaoIh1N9i3xDcfOnJypls=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
vendorHash = "sha256-olirtvnOIKvNXJsanv5UFTcpj7RpPAa5OP0qYTv4wtk=";
|
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}";
|
2022-04-27 09:35:20 +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-18 14:49:53 +00:00
|
|
|
mainProgram = "ooniprobe";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|