Files
CST-agent/shell-win.nix
T
2026-10-19 10:41:00 +08:00

29 lines
732 B
Nix

# Windows x86_64 cross toolchain (mingw-w64, UCRT runtime, static winpthreads).
# nix-shell shell-win.nix --run 'scripts/bootstrap_windows.sh'
{ pkgs ? import <nixpkgs> { } }:
let
win = pkgs.pkgsCross.ucrt64;
in
win.mkShell {
nativeBuildInputs = with pkgs; [
cmake
ninja
gnumake
git
perl
python3
pkg-config
zip
curl
nsis
# The Windows GUI package unpacks MSYS2's prebuilt Qt6 (.pkg.tar.zst) --
# zstd is what tar needs for that (scripts/package_windows_app.sh).
zstd
];
buildInputs = [ win.windows.pthreads ];
# mkShell exports CC/AR for the target; the build scripts call the prefixed tools directly.
shellHook = ''
export MINGW_HOST=x86_64-w64-mingw32
'';
}