nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "brook";
9 version = "20240606";
10
11 src = fetchFromGitHub {
12 owner = "txthinking";
13 repo = "brook";
14 rev = "v${version}";
15 sha256 = "sha256-rfCqYI0T/nbK+rlPGl5orLo3qHKITesdFNtXc/ECATA=";
16 };
17
18 vendorHash = "sha256-dYiifLUOq6RKAVSXuoGlok9Jp8jHmbXN/EjQeQpoqWw=";
19
20 meta = {
21 homepage = "https://github.com/txthinking/brook";
22 description = "Cross-platform Proxy/VPN software";
23 license = with lib.licenses; [ gpl3Only ];
24 maintainers = with lib.maintainers; [ xrelkd ];
25 mainProgram = "brook";
26 };
27}