News for hackers. Stuff that matters.
Re:Tvix: We Are Rewriting Nix by darksaints on Thursday December 02, 2021 @01:54AM (#29413299)
Is tvix/nix pretty tightly coupled to the Linux kernel? I know there is some effort to use the nix package manager on OSX, but I'm not sure if that is a hack or an actual full port to a different kernel. Could it be used on, say, OpenBSD? SeL4?
Re:Tvix: We Are Rewriting Nix by tazjin on Thursday December 02, 2021 @01:57AM (#29413323)
For the core parts of Tvix we won't have any OS-specific dependencies, but each platform will need a working builder and sandbox implementation. I suspect that OpenBSD has at least one OCI-compatible sandboxing/containerisation method so it should end up running fine on there.
Re:Tvix: We Are Rewriting Nix by akavel on Thursday December 02, 2021 @02:41AM (#29413537)
Nix itself is in first approximation "just a package manager", so not particularly tied to a kernel AFAIU. As to NixOS, this one's a Linux distro, so it currently mostly assumes Linux kernel AFAIK. I tried exploring plugging in L4Linux in that place, but failed due to not being able to understand related areas of NixOS/Nixpkgs well enough. Guix OS on the other hand has some (experimental?) support for GNU Mach kernel I believe.
Re:Tvix: We Are Rewriting Nix by chriswarbo on Thursday December 02, 2021 @05:36AM (#29414529)
> Nix itself is in first approximation "just a package manager"

I'd go even further: Nix is just a build tool, like Make.

In fact, it assumes far less about the system than Make; e.g. Make does all sorts of shell-related things, whilst Nix simply executes a binary (with a list of arguments and a set of env vars).

(Nixpkgs definitions almost always use a bash binary as their executable, so it feels more like Make; but Nix doesn't care)

Re:Tvix: We Are Rewriting Nix by pxc on Thursday December 02, 2021 @04:03AM (#29413984)
Guix System (the full OS distribution) supports both Linux and GNU Hurd as kernels
Re:Tvix: We Are Rewriting Nix by akavel on Friday December 03, 2021 @06:47PM (#29437097)
Ouch, right, I borked the name of the GNU kernel - sorry and thanks!
Re:Tvix: We Are Rewriting Nix by ReleaseCandidat on Thursday December 02, 2021 @03:39AM (#29413835)