diff options
author | 3JlOy_PYCCKUI <3jl0y_pycckui@riseup.net> | 2024-04-19 18:05:12 +0300 |
---|---|---|
committer | 3JlOy_PYCCKUI <3jl0y_pycckui@riseup.net> | 2024-04-19 18:05:12 +0300 |
commit | 653bc008b3683ee97a8c1eab4ce9a7b0f96f4f47 (patch) | |
tree | 1d42dbcc7eb47a7c8900b539e5153ddc77257189 /pkgs/by-name/wi | |
parent | 5c24cf2f0a12ad855f444c30b2421d044120c66f (diff) |
wireproxy: 1.0.8 -> 1.0.9
Diffstat (limited to 'pkgs/by-name/wi')
-rw-r--r-- | pkgs/by-name/wi/wireproxy/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/wi/wireproxy/package.nix b/pkgs/by-name/wi/wireproxy/package.nix new file mode 100644 index 0000000000000..b244364c8c9bf --- /dev/null +++ b/pkgs/by-name/wi/wireproxy/package.nix @@ -0,0 +1,40 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, testers +, wireproxy +}: + +buildGoModule rec { + pname = "wireproxy"; + version = "1.0.9"; + + src = fetchFromGitHub { + owner = "pufferffish"; + repo = "wireproxy"; + rev = "v${version}"; + hash = "sha256-VPIEgvUg0h80Cd611zXQ5mhamfJTQpaDK9kiUMy2G0A="; + }; + + ldflags = [ + "-s" + "-w" + "-X main.version=v${version}" + ]; + + vendorHash = "sha256-DNTPzZSxcjkcv7RygTpOIgdYEQ8wBPkuJqfzZGt8ExI="; + + passthru.tests.version = testers.testVersion { + package = wireproxy; + command = "wireproxy --version"; + version = src.rev; + }; + + meta = with lib; { + description = "Wireguard client that exposes itself as a socks5 proxy"; + homepage = "https://github.com/pufferffish/wireproxy"; + license = licenses.isc; + maintainers = with maintainers; [ _3JlOy-PYCCKUi ]; + mainProgram = "wireproxy"; + }; +} |