5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
31 lines
778 B
Nix
31 lines
778 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ooniprobe-cli";
|
|
version = "3.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ooni";
|
|
repo = "probe-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-abCglaMFW6zPc53IU8Bgl/SaoIh1N9i3xDcfOnJypls=";
|
|
};
|
|
|
|
vendorHash = "sha256-olirtvnOIKvNXJsanv5UFTcpj7RpPAa5OP0qYTv4wtk=";
|
|
|
|
subPackages = [ "cmd/ooniprobe" ];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/ooni/probe-cli/releases/tag/${src.rev}";
|
|
description = "The Open Observatory of Network Interference command line network probe";
|
|
homepage = "https://ooni.org/install/cli";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
mainProgram = "ooniprobe";
|
|
};
|
|
}
|