News for hackers. Stuff that matters.
Re:What Is Nix? by pjkundert on Wednesday May 20, 2020 @05:22PM (#23251957)
POSIX (eg. Linux), Mac and Windows. Yes, it is magnificent.

Immutable, deterministic software on all 3 major platforms. Combined with cached build artifacts, builds and their outputs (including complete target system updates/upgrades) are blisteringly fast, cryptographically secure and completely deterministic.

EDIT: Sorry, yes; Windows only via WSL, not natively on Windows proper.

Re:What Is Nix? by mehrdadn on Wednesday May 20, 2020 @05:27PM (#23251999)
Windows? You're kidding me! Where do I see Windows support? On their website I only see Mac and Linux.
Re:What Is Nix? by Ericson2314 on Wednesday May 20, 2020 @07:49PM (#23253391)
https://github.com/NixOS/nix/pull/3185 please somebody throw github.com/volth or me money to finish this
Re:What Is Nix? by Apaec on Wednesday May 20, 2020 @10:05PM (#23254173)
Would it be possible for you guys to team up and do an opencollective campaign for nix on windows?

The static-haskell-nix[1] project was successful with this approach.

Nix on Windows would be amazing!

[1]: https://opencollective.com/static-haskell-nix

Re:What Is Nix? by Ericson2314 on Thursday May 21, 2020 @08:09AM (#23257415)
I cannot speak for Volth, but I am far more pressed for time than money, and largely paid to work on open source as it is, so it's not like that would be dramatically more fun than what I normally do or something.

Also I think in the short term this needs a burst of effort rather than trickle of paid maintenance costs: we're firmly in capex not opex territory.

Re:What Is Nix? by exdsq on Wednesday May 20, 2020 @05:29PM (#23252009)
You can use it on WSL1 and WSL2 but you can't use it natively on Windows. I used it on WSL2 just this afternoon and it was seamless but that makes sense because WSL2 is basically just a Linux VM anyway.
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?
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:

https://github.com/volth/nix-windows/commits/windows

Re:What Is Nix? by _hl_ on Thursday May 21, 2020 @03:04AM (#23255606)
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.

Re:What Is Nix? by exdsq on Wednesday May 20, 2020 @05:46PM (#23252253)
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 :)

Re:What Is Nix? by Apaec on Wednesday May 20, 2020 @10:09PM (#23254198)
There's also a work in progress for a Nix FreeBSD port[1].

[1]: https://reviews.freebsd.org/D17766