!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

343 Members
107 Servers

Load older messages


SenderMessageTime
31 Aug 2023
@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
@penguincoder:matrix.wolfie.pw@penguincoder:matrix.wolfie.pw(I'm pretty new to the community, as well)18:27:12
@Ericson2314:matrix.orgJohn Ericson penguincoder: if the PR is merged, the binaries will be available from cache.nixos.org 19:56:33
1 Sep 2023
@rhelmot:matrix.orgrhelmotwhat derivation usually provides /bin/sh on nixos?03:26:56
@rhelmot:matrix.orgrhelmotI do not have a nix system to query myself03:27:16
@tomberek:matrix.orgtomberekbash-interactive03:28:05
@rhelmot:matrix.orgrhelmotokay, lemme poke around03:28:24
@rhelmot:matrix.orgrhelmotty03:28:24
@rhelmot:matrix.orgrhelmotis there a way to check whether I've got a fully bootstrapped stdenv? I think I've just done it.03:58:00
@rhelmot:matrix.orgrhelmot
[nix-shell:~]$ ldd $(which cat)
/nix/store/x57ywg678k81cx6v99zvapnjffsl4fsv-coreutils-9.3/bin/cat:
        libintl.so.8 => /nix/store/r6sxrxdlq9pxyyfzqr5xrzqxfsg0av8q-gettext-0.21.1/lib/libintl.so.8 (0x2e3df42ee000)
        libc.so.7 => /nix/store/2fpdxqwr59c3qgxzhzl78sf2nbymv65q-world-patched-lib/lib/libc.so.7 (0x2e3df30ca000)
        [vdso] (0x2e3df2950000)
03:59:16

Show newer messages


Back to Room ListRoom Version: 6