python312Packages.kneaddata: init at 0.7.7-alpha (#340230)
[NixPkgs.git] / pkgs / by-name / tu / tun2proxy / package.nix
blob984cafc2d9fa8c2bf8069b43089e2d1834402734
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "tun2proxy";
9   version = "0.6.0";
11   src = fetchFromGitHub {
12     owner = "tun2proxy";
13     repo = "tun2proxy";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-LY7vVD85GVFqARYOBDeb4fS6rL2PwPXYXIAJtwm2goo=";
16   };
18   cargoHash = "sha256-o/zQjWR9qNs0XVL/dcRiMHgj+8Xvl6vVl/Yw5iLhroI=";
20   cargoPatches = [
21     ./Cargo.lock.patch
22   ];
24   meta = {
25     homepage = "https://github.com/tun2proxy/tun2proxy";
26     description = "Tunnel (TUN) interface for SOCKS and HTTP proxies";
27     changelog = "https://github.com/tun2proxy/tun2proxy/releases/tag/v${version}";
28     license = lib.licenses.mit;
29     platforms = lib.platforms.linux;
30     mainProgram = "tun2proxy-bin";
31     maintainers = with lib.maintainers; [ mksafavi ];
32   };