Files
Hermit/shell-win.nix
T
WHC 50abcf1a91
ci / tcc-check (push) Successful in 1m9s
ci / linux (aarch64, 0) (push) Failing after 58m44s
ci / linux (x86, 1) (push) Successful in 13m47s
ci / linux (x86_64, 1) (push) Failing after 1h0m2s
ci / windows (push) Successful in 10m46s
build: finish cross-platform release tooling
2026-10-10 16:21:00 +08:00

26 lines
574 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
];
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
'';
}