Comment by bpye

6 days ago

> I hope our in-progress Windows support would make this especially compelling.

What is the current story for using Nix to build Windows binaries?

On Nixpkgs master, you can cross compile to MinGW and Cygwin.

Native Cygwin builds are also currently in progress: https://github.com/NixOS/nixpkgs/pull/447520. I would expect this to be done very soon, there year even (holidays permitting).

There is a MinGW build of Nix but it is missing some features. There has been MSVC build of a fork in the past and I would like to revive that also.

There some some open questions relating to Nixpkgs's heavy use of Bash, but longer term I would like to compete for Windows in all ways:

- Support all cross (MinGW, Cygwin/MSYS2, MSVC ABI with LLVM, MSVC with Wine) - Be Cygwin packages - Be https://github.com/msys2/MINGW-packages / https://github.com/msys2/MSYS2-packages - Be VCPKG

All these things have slightly different trade-offs, and Nixpkgs is very good at portability, so we should simply do them all.