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