17 Mar 2022 |
matthewcroughan - nix.how | I look forward to doing it, when I get the VisionFive. | 13:43:38 |
18 Mar 2022 |
qbit | hio | 11:55:38 |
qbit | does anyone have anything setup for producing risc-v toolchains? | 11:56:25 |
| * qbit wants to try and get https://github.com/betrusted-io/rust running | 11:56:42 |
qbit | is it as easy as crossSystem = { system = "riscv64-none-elf"; }; ? D: | 12:00:49 |
ius | If it's already in nixpkgs, perhaps yeah
{ config = "riscv64-unknown-linux-gnu"; }
is what I use
| 12:02:59 |
ius | Otherwise, if you just want a shell with a RISC-V rust toolchain, something like nix-shell -p pkgsCross.riscv64.buildPackages.rustc ? | 12:03:25 |
ius | Oh, you're looking to build something non-linux, then your own triplet might be more appropriate. | 12:05:36 |
qbit | i think i need to do multiple stages, first with a riscv64-unknown-linux-gnu, then use that to build the riscv32imac-unknown-xous-elf stuff | 12:10:11 |
j-k | for betrusted-io's specific rust toolchain I'd try getting that working on x86_64 linux first before trying riscv | 12:15:19 |
ius | Yeah it sounds a fair bit more complicated than just cross compiling for Linux on RISC-V. | 12:17:01 |
qbit | mmm, maybe i am not understanding something then - i am attempting this part https://github.com/betrusted-io/rust#building-from-source | 12:32:01 |
qbit | oh i see - config = "riscv...." will give me all of mu buildInputs as riscv stuff | 12:53:08 |
| * qbit switches to he cross compiling room | 12:54:06 |
20 Mar 2022 |
| Anderson Torres joined the room. | 20:22:47 |
22 Mar 2022 |
| matthewcroughan - nix.how changed their display name from matthewcroughan - nix.zone to matthewcroughan - nix.how. | 22:56:07 |
24 Mar 2022 |
| rgrinberg joined the room. | 05:27:32 |
| * colemickens waitng for qemu release intensifies | 21:21:29 |
colemickens | I want those more riscv cores | 21:21:37 |
25 Mar 2022 |
Anderson Torres | It will be officially supported? | 00:37:41 |
Zhaofeng Li | No, it's been there since forever. It's just that the maximum CPU limit for qemu-system-riscv(64) has been increased | 00:43:27 |
Zhaofeng Li | Before that you had to patch QEMU to increase it: https://www.mail-archive.com/qemu-discuss@nongnu.org/msg06986.html | 00:44:24 |
27 Mar 2022 |
Anderson Torres | I am interested in porting Nix to Haiku (the open source BeOS replacement).
I have asked a thing or two in their Telegram channel, and I have received some feedback:
| 18:27:14 |
Anderson Torres |
be warned, you SHOULD know a bit about Haiku before you can start to use nix on it. Basically / on Haiku is not the same as on unixes. Nix will try to store its data in /nix folder structure, and while it is possible to create that folder, you cannot create files in it, because / is a virtual folder, not the root node of the disk. You have to redefine the nix store to somewhere else.
Also nix uses hardlinks for some things, which is not supported on BFS.
It seems it fails at fallocate, maybe it is something else then; commenting out the code here solved the problem: https://github.com/NixOS/nix/blob/master/src/libutil/archive.cc#L331
| 18:28:34 |
Anderson Torres | The other possible problem is that Haiku supports 32-bit operating systems. Maybe it would limit the possibility of porting a "haiku-nixpkgs" to it? | 18:29:54 |
7c6f434c | Well, Wine on x86_64-linux is dependent on 32-bit libraries | 18:47:03 |
7c6f434c | So basic 32-bit stuff breaking would be a problem for a (the) Tier-1 platform | 18:47:56 |
7c6f434c | Does BeOS support anything like bind-mounts? Because /nix holding no files itself and just serving as a mountpoint sounds good to me | 18:49:00 |
7c6f434c | On the other hand, which parts of the sandbox can be approximated is a complicated question… Bind mounts + chroot (or a clear replacement) would be nice to have… | 18:50:19 |
Anderson Torres | Maybe bind-mounting can be accomplished. Here is a message from their mailing list (completely out of context, but whatever):
https://www.freelists.org/post/haiku-development/Question-about-system-and-bootsystem,14
| 18:56:25 |