nixpkgs/pkgs/tools/networking/ooniprobe-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
774 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "ooniprobe-cli";
2024-08-08 14:38:01 +00:00
version = "3.23.0";
src = fetchFromGitHub {
owner = "ooni";
repo = "probe-cli";
rev = "v${version}";
2024-08-08 14:38:01 +00:00
hash = "sha256-ey71XA/ZtN6AI/DyjqFGcY5XW9H0RoOjrmjDEIgJMkM=";
};
2024-08-08 14:38:01 +00:00
vendorHash = "sha256-wuCqyr7JuzRHJE8ct1DRi9aFJWeHdF1sxUjvQiBMa6I=";
subPackages = [ "cmd/ooniprobe" ];
ldflags = [ "-s" "-w" ];
meta = with lib; {
changelog = "https://github.com/ooni/probe-cli/releases/tag/${src.rev}";
description = "Open Observatory of Network Interference command line network probe";
homepage = "https://ooni.org/install/cli";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
mainProgram = "ooniprobe";
};
}