2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "wireproxy";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.0.6";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-05-24 13:37:59 +00:00
|
|
|
owner = "pufferffish";
|
2023-01-11 07:51:40 +00:00
|
|
|
repo = "wireproxy";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-Sy8jApnU3dpsXi5vWyEY6D250xpG73aByNZ/pSg90l0=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=v${version}"
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = "sha256-LBLEb2oVi5ILNtoOtmJZ7NC7hMvLZcexYAxwmb4iUBo=";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wireguard client that exposes itself as a socks5 proxy";
|
|
|
|
homepage = "https://github.com/octeep/wireproxy";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ _3JlOy-PYCCKUi ];
|
|
|
|
};
|
|
|
|
}
|