Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
40 lines
866 B
Nix
40 lines
866 B
Nix
{ 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";
|
|
};
|
|
}
|