| 29 Aug 2023 |
Alex | In reply to @penguincoder:matrix.wolfie.pw Possibly, WSL2 has support for systemd but I don't think it's on by default. That's more multi-user friendly, but it's probably more complication than it's worth most of the time. It's possible to run systemd using namespaces, but it's not pretty and quite fragile. | 17:45:52 |
7c6f434c | Strictly speaking, Nix multi-user runs just fine without systemd, but on Linux it expects to have namespaces working fully. | 19:22:09 |
| 31 Aug 2023 |
John Ericson | https://github.com/NixOS/nix/pull/8887 it's here! Easier than I thought it was gonna be | 04:22:36 |
trofi | Well done! Looks like it's just nix cross-compiling, not the nixpkgs :) | 14:52:52 |
raitobezarius | well I believe nixpkgs have some stuff in place for it | 14:57:10 |
@penguincoder:matrix.wolfie.pw | In reply to @Ericson2314:matrix.org https://github.com/NixOS/nix/pull/8887 it's here! Easier than I thought it was gonna be wow! I have been hoping to start using nix in freebsd for a hot minute. I can't wait to try it out. | 17:27:39 |
rhelmot | this doesn't make the stdenv actually boot on freebsd does it? I have been trying to do that for several months | 17:28:49 |
John Ericson | nope | 17:29:13 |
John Ericson | this is just using the existing thing in Nixpkgs by Nix | 17:29:29 |
rhelmot | how are the resulting cross-compiled binaries actually runnable? are they linked against libc.so.7 and the bsd /libexec/ld-elf.so.1 or do you need the nix store on your target system to use them? | 17:31:41 |
John Ericson | rhelmot: who knows! | 17:39:40 |
John Ericson | that is a question for Alyssa Ross, who unlike me has tested them | 17:39:52 |
John Ericson | IMO worst cash do some patchelf and then it should be OK? | 17:40:05 |
John Ericson | maybe I can make some statically linkedones | 17:40:29 |
John Ericson | * maybe I can make some statically linked ones | 17:40:34 |
Alyssa Ross | they are dynamically linked by default, so you of course need the nix store | 18:00:26 |
Alyssa Ross | but static linking should work, at least for NetBSD | 18:00:32 |
@penguincoder:matrix.wolfie.pw | how do you get a BSD bootstrapped with a working nix binary? is there anything written anywhere? | 18:06:00 |
rhelmot | you don't :) freebsd right now isn't even listed in the "unsupported targets" list in nixpkgs, it's commented out as "doesn't work" | 18:07:03 |
rhelmot | which is why I'm really interested in how this works, that understanding can't possibly be right if that's what alyssa is saying! | 18:07:34 |
rhelmot | oh you're asking about other bsds, not just freebsd. I think netbsd and openbsd (?) have real stdenvs | 18:09:00 |
Alyssa Ross | right now BSD only really works if you cross-compile to it from Linux | 18:13:12 |
rhelmot | so you copy an entire nix store from linux to bsd and some of the binaries in it are bsd elves? | 18:14:29 |
Alyssa Ross | well a more sensible thing to do would be to nix-copy-closure just the stuff you build for BSD | 18:16:02 |
rhelmot | woah | 18:16:10 |
rhelmot | sorry, I'm very new to nix, so I'm not familar with the tools | 18:16:24 |
Alyssa Ross | pretty sure it doesn't need Nix on the other end | 18:16:26 |
John Ericson | You can copy to a fresh local store (in non standard location) on the Linux side and then just copy that directly over to BSD | 18:21:18 |
John Ericson | * You can also copy to a fresh local store (in non standard location) on the Linux side and then just copy that directly over to BSD | 18:21:44 |
@penguincoder:matrix.wolfie.pw | so with the change to CI, will the binaries be built and pushed to the binary cache? could I then download those on my machine? | 18:27:02 |