NixOS RISC-V | 209 Members | |
| NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux | 64 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Jan 2025 | ||
In reply to @rosscomputerguy:matrix.orgUsing nix flake metadata, I count 5 versions of Nixpkgs amongst your inputs (2 of which are coincidentally the same). | 00:26:37 | |
Does that matter when you use overlays only and don't use packages or legacyPackages of the inputs? | 00:29:27 | |
| I don't think so. Unfortunately I have no idea how to profile Nix evaluations... I've always been able to just throw more RAM at the problem (since it's only been a problem in VMs for me so far). | 00:30:35 | |
| Yeah, I'm not sure how to profile evals too | 00:31:06 | |
| It would really help if I knew how to for some of my other projects lol | 00:31:27 | |
| I guess the old binary search trick could work... Remove half of the code and see how it affects memory usage. Then focus your search onto the more memory-consuming half and repeat. | 00:35:54 | |
| https://github.com/RossComputerGuy/dotfiles/runs/35174538512 huh the x86_64-linux cross is able to evail within Garnix's 5GB limit but the full system cannot | 00:37:51 | |
| * https://github.com/RossComputerGuy/dotfiles/runs/35174538512 huh the x86_64-linux cross is able to eval within Garnix's 5GB limit but the full system cannot | 00:37:57 | |
In reply to @alex:tunstall.xyzMemory usage is one of the major pain points of Nix. 😞 | 01:03:36 | |
I cannot find where this etc file is defined lol | 02:02:49 | |
| Oh, it's inside the derivation | 02:04:15 | |
| Webkit requires GHC somewhere and it throws that error, I know there's a way to get around that but just trying to get the system to build purely | 02:05:09 | |
| Oh, shellcheck is required which uses GHC | 02:08:01 | |
| * Oh, shellcheck is required which uses GHC deep in the chain | 02:08:13 | |
| https://github.com/NixOS/nixpkgs/pull/362868 didn't get into 24.11 | 02:14:24 | |
| Oh, it doesn't matter that it isn't in 24.11 because that doesn't work. | 02:22:31 | |
| The root of the problem is this https://github.com/NixOS/nixpkgs/issues/231537 | 03:28:59 | |
| You can cross compile ghc for rv64 but cannot bootstrap it natively (yet) | 03:29:24 | |
| Yeah, I was looking at the issue | 03:34:49 | |
| The problem is there's code to disable shellcheck on incompatible problems | 03:35:04 | |
| And the problem is that check does not work | 03:35:12 | |
nixos-unstable should have it, I pointed the config to that and yet it still errors | 03:38:33 | |
| Ok, master branch works | 03:46:50 | |
| Wait, is the nixpkgs issue tracker wrong lol? It says the PR made it through fully | 03:48:47 | |
| Yay, we've gotten passed eval. Now time for like 2 weeks of compiling. | 03:55:44 | |
| 15:40:46 | ||
| 7 Jan 2025 | ||
| 07:42:18 | ||
| 11:41:55 | ||
In reply to @rosscomputerguy:matrix.org I "broke" the check when I added support for cross-compiling GHC. All you need to do is override the default GHC to disable building it for the RISC-V platform such that the check functions as originally intended. | 22:22:06 | |
In reply to @alex:tunstall.xyzOh... fun | 22:25:02 | |