Re:What Is Nix?
by _hl_ on Wednesday May 20, 2020 @05:41PM
(#23252163)
Although I don't see why it wouldn't work on Windows natively. Sure, it would probably need a complete reimplementation to replace all the POSIX stuff with Windows stuff, but fundamentally it ought to be possible?
[ Parent
| on HN ]
Re:What Is Nix?
by matthewbauer on Wednesday May 20, 2020 @08:07PM
(#23253501)
The biggest issue IIRC is that Bash doesn't play well with Windows. Things like paths are handled different enough to cause lots of breakage. We could rewrite all of the Bash in Perl or Python, which has better cross-platform support, but that's a lot of work.
That said, there have been attempts to get native Windows support:
Why rely on bash? Windows has Powershell and symlinks, what else is needed to create a nix-style package manager for Windows?
I'm not saying it's a good idea, I don't think anyone would really want that, but it could be done.
Sure in theory but there are a few open bugs:
https://github.com/NixOS/nix/issues/2651 https://github.com/NixOS/nix/issues/2292 https://github.com/NixOS/nix/issues/1203
There's a locking issue with SQLite and the Sandbox has some namespace issues where Linux and Windows behave differently. I don't know how eager they are to make it work on Windows either, but at least WSL works :)