summary refs log tree commit diff
path: root/pkgs/tools/networking
diff options
context:
space:
mode:
authorlinsui <linsui555@gmail.com>2023-10-27 15:35:42 +0800
committerlinsui <linsui555@gmail.com>2023-10-28 13:16:53 +0800
commit58262c13489cea1a3b6b09dbf0c0e498ce762c15 (patch)
treed2c5f19b739bc0d92576ea1b122de9f090f0eb83 /pkgs/tools/networking
parentdc42e2603bc63e39865fbe91c2566182f5e70513 (diff)
downloadnixpkgs-58262c13489cea1a3b6b09dbf0c0e498ce762c15.tar
nixpkgs-58262c13489cea1a3b6b09dbf0c0e498ce762c15.tar.gz
nixpkgs-58262c13489cea1a3b6b09dbf0c0e498ce762c15.tar.bz2
nixpkgs-58262c13489cea1a3b6b09dbf0c0e498ce762c15.tar.lz
nixpkgs-58262c13489cea1a3b6b09dbf0c0e498ce762c15.tar.xz
nixpkgs-58262c13489cea1a3b6b09dbf0c0e498ce762c15.tar.zst
nixpkgs-58262c13489cea1a3b6b09dbf0c0e498ce762c15.zip
wireproxy: use buildGo120Module
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r--pkgs/tools/networking/wireproxy/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/networking/wireproxy/default.nix b/pkgs/tools/networking/wireproxy/default.nix
index 2c88f40825d..7a12e477c05 100644
--- a/pkgs/tools/networking/wireproxy/default.nix
+++ b/pkgs/tools/networking/wireproxy/default.nix
@@ -1,9 +1,11 @@
 { lib
-, buildGoModule
+, buildGo120Module
 , fetchFromGitHub
+, testers
+, wireproxy
 }:
 
-buildGoModule rec {
+buildGo120Module rec {
   pname = "wireproxy";
   version = "1.0.6";
 
@@ -22,6 +24,12 @@ buildGoModule rec {
 
   vendorHash = "sha256-LBLEb2oVi5ILNtoOtmJZ7NC7hMvLZcexYAxwmb4iUBo=";
 
+  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/octeep/wireproxy";