Hacker News new | past | comments | ask | show | jobs | submit login

Ha, I went from Ubuntu > Arch > NixOS and I think I'm finally happy (famous last words, I know). This rings true for me.



I really want to sell Valve on the Nixpkgs cross compilation work we've done someday. If anyone knows anyone there that would be interested in flawless Linux <-> Windows builds with all toolchain combinations, do let me know!

Thanks for playing games on NixOS!


Have you a link to a specific project?


https://github.com/NixOS/nixpkgs/blob/master/lib/systems/exa... for examples of the platforms we support today.

https://nix.dev/tutorials/cross-compilation#cross-compilatio... for an approachable introduction.

Currently we just support Unix -> Windows via MinGW. That's not good enough for AAA games.

But in the works is:

- https://github.com/NixOS/nixpkgs/pull/72366 Windows cross via LLVM and auto-downloaded MSVC runtime (you do need to indicate you signed the license, but that's it). I've heard of running cl.exe in Wine, and we could do that too

- https://github.com/nix-windows/nix Windows port of Nix

We finish these things up, and then we have the flawless Unix <-> Windows I advertised.


I’ve been following the nix-windows project, has there been any recent progress there? I already run NixOS on my home server, Nix and home-manager on my MacBook. It would be great to replace scoop on Windows with Nix too.


No progress on a nix-windows recently. I think the hardest part has just been keeping up with nix when we need to rewrite the build system.

However, https://github.com/NixOS/nix/pull/3160 to switch to Meson, has gotten new life breathed into it. Pamplemousse, who is interning where Edolstra works, is fuzzing Nix and needs Meson to make that less burdensome.

If that does get merged, than nix-windows can just be about Windows and not also be about Nix's build system, which will make it a lot easier to finish.


Thanks for the link - I'll be sure to follow that issue.


Thanks for your interest!




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: