nixpkgs/pkgs/tools/networking/ooniprobe-cli/default.nix
2024-03-27 13:29:28 +00:00

32 lines
778 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "ooniprobe-cli";
version = "3.21.0";
src = fetchFromGitHub {
owner = "ooni";
repo = "probe-cli";
rev = "v${version}";
hash = "sha256-bV1eEuHYaqDKRImEMX9LP/3R3/lVpKpBfweRjucKtTc=";
};
vendorHash = "sha256-I88cALmc8iTaVJ36ntQLw+wRMM2GLWMWLhv8EDJDRgg=";
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";
};
}