1{ lib
2, buildGo120Module
3, fetchFromGitHub
4, testers
5, wireproxy
6}:
7
8buildGo120Module rec {
9 pname = "wireproxy";
10 version = "1.0.6";
11
12 src = fetchFromGitHub {
13 owner = "pufferffish";
14 repo = "wireproxy";
15 rev = "v${version}";
16 hash = "sha256-Sy8jApnU3dpsXi5vWyEY6D250xpG73aByNZ/pSg90l0=";
17 };
18
19 ldflags = [
20 "-s"
21 "-w"
22 "-X main.version=v${version}"
23 ];
24
25 vendorHash = "sha256-LBLEb2oVi5ILNtoOtmJZ7NC7hMvLZcexYAxwmb4iUBo=";
26
27 passthru.tests.version = testers.testVersion {
28 package = wireproxy;
29 command = "wireproxy --version";
30 version = src.rev;
31 };
32
33 meta = with lib; {
34 description = "Wireguard client that exposes itself as a socks5 proxy";
35 homepage = "https://github.com/octeep/wireproxy";
36 license = licenses.isc;
37 maintainers = with maintainers; [ _3JlOy-PYCCKUi ];
38 };
39}