19 gvproxyWin = gvproxy.overrideAttrs (_: {
21 GOARCH=amd64 GOOS=windows go build -ldflags '-s -w' -o bin/gvproxy-windows.exe ./cmd/gvproxy
25 resholve.mkDerivation {
29 src = fetchFromGitHub {
33 hash = "sha256-Igbr3L2W32s4uBepllSz07bkbI3qwAKMZkBrXLqGrGA=";
37 substituteInPlace wsl-vpnkit \
38 --replace "/app/wsl-vm" "${gvproxy}/bin/gvforwarder" \
39 --replace "/app/wsl-gvproxy.exe" "${gvproxyWin}/bin/gvproxy-windows.exe"
44 cp wsl-vpnkit $out/bin
47 solutions.wsl-vpnkit = {
48 scripts = [ "bin/wsl-vpnkit" ];
62 "$VMEXEC_PATH" = true;
63 "$GVPROXY_PATH" = true;
67 "cannot:${iproute2}/bin/ip"
68 "cannot:${wget}/bin/wget"
73 ping = "${iputils}/bin/ping";
78 description = "Provides network connectivity to Windows Subsystem for Linux (WSL) when blocked by VPN";
79 homepage = "https://github.com/sakai135/wsl-vpnkit";
80 changelog = "https://github.com/sakai135/wsl-vpnkit/releases/tag/v${version}";
81 license = licenses.mit;
82 maintainers = with maintainers; [ terlar ];
83 mainProgram = "wsl-vpnkit";