nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "ooniprobe-cli";
9 version = "3.28.0";
10
11 src = fetchFromGitHub {
12 owner = "ooni";
13 repo = "probe-cli";
14 tag = "v${version}";
15 hash = "sha256-94N5pOj73HERGqTt6o6MweW9W5bL2W7CBrUa7jQt7fM=";
16 };
17
18 vendorHash = "sha256-3cjohavZfK4hoOMPVLvzwp4ORQ00baqtFUhFyA7Z8OM=";
19
20 subPackages = [ "cmd/ooniprobe" ];
21
22 ldflags = [
23 "-s"
24 "-w"
25 ];
26
27 meta = {
28 changelog = "https://github.com/ooni/probe-cli/releases/tag/${src.tag}";
29 description = "Open Observatory of Network Interference command line network probe";
30 homepage = "https://ooni.org/install/cli";
31 license = lib.licenses.gpl3Plus;
32 maintainers = with lib.maintainers; [ dotlambda ];
33 mainProgram = "ooniprobe";
34 };
35}