7 rustPlatform.buildRustPackage rec{
11 src = fetchFromGitHub {
15 hash = "sha256-Rqno+cg44IWBJbKWUP6BnxzwCjuNhFo9nBF6u2jlyA4=";
18 cargoHash = "sha256-EunlvI7I6d93wb3hxgxsyAXkzxRlDu0fq9qqjnbzzWg=";
22 webBundle = fetchurl {
23 url = "https://github.com/sorz/moproxy-web/releases/download/v0.1.8/build.zip";
24 hash = "sha256-bLC76LnTWR2/xnDcZtX/t0OUmP7vdI/o3TCRzG9eH/g=";
28 # build script try to download from network
29 sed -i '15s/.*/let zip_path = PathBuf::from("${lib.escape ["/"] (toString webBundle)}");/' build.rs
33 homepage = "https://github.com/sorz/moproxy";
34 description = "Transparent TCP to SOCKSv5/HTTP proxy on Linux written in Rust";
35 license = licenses.mit;
36 mainProgram = "moproxy";
37 maintainers = with maintainers; [ oluceps ];
38 platforms = platforms.linux;