Start of the native Windows port. windows/ holds a Rust workspace; this first piece is ps-core's model of the services.proxy-suite option tree, with upstream's names and defaults, Windows-only additions documented, validation ported from the module's assertions, and the derived tags and loopback ports the tunnels add. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{
|
|
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
|
|
];
|
|
buildInputs = guiLibs;
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath guiLibs;
|
|
shellHook = ''
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|