31 lines
778 B
Nix
31 lines
778 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ooniprobe-cli";
|
|
version = "3.19.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ooni";
|
|
repo = "probe-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-sYIp5zl49waERfTYPfNjbyzep7p4sRlweDVcuTtWB28=";
|
|
};
|
|
|
|
vendorHash = "sha256-6RyK0oy9Lcuh2TXpQqAqmrA+bS9hug6+il7L1z+kYvs=";
|
|
|
|
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";
|
|
};
|
|
}
|