Files
proxy-suite-flake/windows/flake.nix
T
faumarayandClaude Opus 5.5 c837db1c18 windows: workspace, dev shell and the config model
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>
2026-10-26 22:28:10 +03:00

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"
'';
};
}
);
};
}