Nix Cross Compiling | 539 Members | |
| 111 Servers |
| Sender | Message | Time |
|---|---|---|
| 25 Nov 2025 | ||
| cool | 18:55:16 | |
What configuration settings do you use here? I'm new to this one too, and I see I can choose (mainline | proprietary) kernel, (nixpkgs stable | nix-hardware | raspberry-pi-nix) for hardware support. | 18:58:52 | |
| This particular pi is a 4b and will be headless, so I don't need to have much desktopy stuff on it | 18:59:20 | |
| The biggest obstacle to making it all automatic with nix-forecast and a script is nested attrs but just changing the top-level attrs will increase the cache hits by a lot | 18:59:45 | |
Didn't change the kernel | 19:00:42 | |
I figured the biggest issue would be that it's not easy to map cached store paths back to attr / package names | 19:01:01 | |
| Also got these to not compile gtk
| 19:01:04 | |
| * Also got these to not compile gtk and some other packages
| 19:01:10 | |
And I import (modulesPath + "/profiles/minimal.nix") | 19:02:51 | |
| Just updated my raspi and took me 1H to compile everything on r5 5900x | 19:03:35 | |
| * Just updated my raspi and took me 1H to compile everything on r9 5900x | 19:03:42 | |
| Thanks for all the info! | 19:06:35 | |
| eb:
| 20:51:23 | |
| made this thing so I can pass the native pkgs around without using specialArgs | 20:51:39 | |
| Nice, ty. I did a similar thing to avoid specialArgs, but with | 21:51:05 | |
| 26 Nov 2025 | ||
| 11:56:47 | ||
| https://github.com/NixOS/nixpkgs/pull/465092 | 21:48:02 | |
| 27 Nov 2025 | ||
| How come this is an issue with CGO disabled? It shouldn’t use CC at all | 07:55:18 | |
| Yesterday I found an issue somewhere which IIRC mentioned something about something trying to use CGO/compiler even when it's off | 17:32:21 | |
| I'm trying to find it again | 17:32:28 | |
| That likely is the root cause of the issue as before just disabling CGO and unsetting GOARCH was enough https://github.com/nixos/nixpkgs/commit/78b312a895f8368746318bacb2634a151e8ea6ae | 17:38:09 | |
| Maybe this will fix it? https://github.com/NixOS/nixpkgs/pull/458867/ | 19:54:37 | |
| Or maybe even https://github.com/NixOS/nixpkgs/pull/461615 | 19:55:17 | |
Download screenshot_2025-11-27_22-25-29_895546503.png | 20:26:07 | |
| Both are in unstable already :P | 20:28:32 | |
| The first one probably fixed it | 20:28:52 | |
| But was reverted | 20:29:14 | |
| Well maybe not, I don't see anything that would have fixed it | 20:36:43 | |
| It used to work in August | 20:37:15 | |
| Working fbcf476f790d8a217c3eab4e12033dc4a0f6d23c Not working 050e09e091117c3d7328c7b2b7b577492c43c134 | 20:44:41 | |