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>
This commit is contained in:
1 parent
9d81e975ea
commit
c837db1c18
16 files changed
+3506
No files matched your search
@@ -0,0 +1,60 @@
|
||||
{
|
||||
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"
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user