!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

325 Members
100 Servers

Load older messages


SenderMessageTime
29 Aug 2023
@alex:tunstall.xyzAlex
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:nitro.chat7c6f434cStrictly 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
@Ericson2314:matrix.orgJohn Ericsonhttps://github.com/NixOS/nix/pull/8887 it's here! Easier than I thought it was gonna be04:22:36
@trofi:matrix.orgtrofi Well done! Looks like it's just nix cross-compiling, not the nixpkgs :) 14:52:52
@raitobezarius:matrix.orgraitobezariuswell I believe nixpkgs have some stuff in place for it14:57:10
@penguincoder:matrix.wolfie.pw@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:matrix.orgrhelmotthis doesn't make the stdenv actually boot on freebsd does it? I have been trying to do that for several months17:28:49
@Ericson2314:matrix.orgJohn Ericsonnope17:29:13
@Ericson2314:matrix.orgJohn Ericsonthis is just using the existing thing in Nixpkgs by Nix17:29:29
@rhelmot:matrix.orgrhelmothow 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
@Ericson2314:matrix.orgJohn Ericson rhelmot: who knows! 17:39:40
@Ericson2314:matrix.orgJohn Ericson that is a question for Alyssa Ross, who unlike me has tested them 17:39:52
@Ericson2314:matrix.orgJohn Ericson IMO worst cash do some patchelf and then it should be OK? 17:40:05
@Ericson2314:matrix.orgJohn Ericsonmaybe I can make some statically linkedones17:40:29
@Ericson2314:matrix.orgJohn Ericson * maybe I can make some statically linked ones17:40:34
@qyliss:fairydust.spaceAlyssa Rossthey are dynamically linked by default, so you of course need the nix store18:00:26
@qyliss:fairydust.spaceAlyssa Rossbut static linking should work, at least for NetBSD 18:00:32
@penguincoder:matrix.wolfie.pw@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:matrix.orgrhelmotyou 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:matrix.orgrhelmotwhich 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:matrix.orgrhelmotoh you're asking about other bsds, not just freebsd. I think netbsd and openbsd (?) have real stdenvs18:09:00
@qyliss:fairydust.spaceAlyssa Rossright now BSD only really works if you cross-compile to it from Linux18:13:12
@rhelmot:matrix.orgrhelmotso you copy an entire nix store from linux to bsd and some of the binaries in it are bsd elves?18:14:29
@qyliss:fairydust.spaceAlyssa Rosswell a more sensible thing to do would be to nix-copy-closure just the stuff you build for BSD18:16:02
@rhelmot:matrix.orgrhelmotwoah18:16:10
@rhelmot:matrix.orgrhelmotsorry, I'm very new to nix, so I'm not familar with the tools18:16:24
@qyliss:fairydust.spaceAlyssa Rosspretty sure it doesn't need Nix on the other end18:16:26
@Ericson2314:matrix.orgJohn EricsonYou can copy to a fresh local store (in non standard location) on the Linux side and then just copy that directly over to BSD18:21:18
@Ericson2314:matrix.orgJohn 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 BSD18:21:44
@penguincoder:matrix.wolfie.pw@penguincoder:matrix.wolfie.pwso 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

Show newer messages


Back to Room ListRoom Version: 6