{ description = "Proxy Suite for Windows: development shell"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { nixpkgs, ... }: let systems = [ "x86_64-linux" "aarch64-linux" ]; forAll = nixpkgs.lib.genAttrs systems; in { devShells = forAll ( system: let pkgs = import nixpkgs { inherit system; }; # GPUI also runs on Linux, so the GUI can be tried here before a Windows build. guiLibs = with pkgs; [ libxkbcommon wayland vulkan-loader libx11 libxcb libxcursor libxi libxrandr fontconfig freetype alsa-lib ]; in { default = pkgs.mkShell { packages = with pkgs; [ rustup pkg-config cargo-xwin clang lld llvm pkgsCross.mingwW64.stdenv.cc # The backends, to check rendered configs and run the service on Linux. sing-box xray python3 jq zip unzip curl git python3Packages.pip # The SSH tunnel's end-to-end test runs an sshd of its own. openssh # wireproxy-awg and whitelist-bypass, built from source (Go cross-compiles). go # The setup program (tools/installer.nsi). nsis ]; buildInputs = guiLibs; LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath guiLibs; shellHook = '' export PATH="$HOME/.cargo/bin:$PATH" ''; }; } ); }; }