| 31 Aug 2023 |
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 |
@penguincoder:matrix.wolfie.pw | (I'm pretty new to the community, as well) | 18:27:12 |
John Ericson | penguincoder: if the PR is merged, the binaries will be available from cache.nixos.org | 19:56:33 |
| 1 Sep 2023 |
rhelmot | what derivation usually provides /bin/sh on nixos? | 03:26:56 |
rhelmot | I do not have a nix system to query myself | 03:27:16 |
tomberek | bash-interactive | 03:28:05 |
rhelmot | okay, lemme poke around | 03:28:24 |
rhelmot | ty | 03:28:24 |
rhelmot | is there a way to check whether I've got a fully bootstrapped stdenv? I think I've just done it. | 03:58:00 |
rhelmot | [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 |