nixpkgs/pkgs/tools/networking/wireproxy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
836 B
Nix
Raw Normal View History

2023-01-04 13:05:21 +00:00
{ lib
2023-10-27 07:35:42 +00:00
, buildGo120Module
2023-01-04 13:05:21 +00:00
, fetchFromGitHub
2023-10-27 07:35:42 +00:00
, testers
, wireproxy
2023-01-04 13:05:21 +00:00
}:
2023-10-27 07:35:42 +00:00
buildGo120Module rec {
2023-01-04 13:05:21 +00:00
pname = "wireproxy";
2023-05-24 01:40:15 +00:00
version = "1.0.6";
2023-01-04 13:05:21 +00:00
src = fetchFromGitHub {
2023-05-24 01:40:15 +00:00
owner = "pufferffish";
2023-01-04 13:05:21 +00:00
repo = "wireproxy";
rev = "v${version}";
2023-05-24 01:40:15 +00:00
hash = "sha256-Sy8jApnU3dpsXi5vWyEY6D250xpG73aByNZ/pSg90l0=";
2023-01-04 13:05:21 +00:00
};
ldflags = [
"-s"
"-w"
"-X main.version=v${version}"
];
2023-05-24 01:40:15 +00:00
vendorHash = "sha256-LBLEb2oVi5ILNtoOtmJZ7NC7hMvLZcexYAxwmb4iUBo=";
2023-01-04 13:05:21 +00:00
2023-10-27 07:35:42 +00:00
passthru.tests.version = testers.testVersion {
package = wireproxy;
command = "wireproxy --version";
version = src.rev;
};
2023-01-04 13:05:21 +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 ];
};
}