1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "tun2proxy";
9 version = "0.7.6";
10
11 src = fetchCrate {
12 pname = "tun2proxy";
13 inherit version;
14 hash = "sha256-hAZZ9pSoIgAb4JYhi9mGHMD4CIjnxVJU00PDsQe6OLY=";
15 };
16
17 cargoHash = "sha256-A/hBV/koIR7gLIZVCoaRk5DI11NZ5HI+xn6qkU+fxaI=";
18
19 meta = {
20 homepage = "https://github.com/tun2proxy/tun2proxy";
21 description = "Tunnel (TUN) interface for SOCKS and HTTP proxies";
22 changelog = "https://github.com/tun2proxy/tun2proxy/releases/tag/v${version}";
23 license = lib.licenses.mit;
24 mainProgram = "tun2proxy-bin";
25 maintainers = with lib.maintainers; [ mksafavi ];
26 };
27}