Nix Cross Compiling | 538 Members | |
| 110 Servers |
| Sender | Message | Time |
|---|---|---|
| 23 Nov 2025 | ||
| I assumed it must have been just for the shell, but I get the same thing with --no-shell | 12:52:29 | |
| * Failing to evaluate it as a result (not available on the requested hostPlatform):
| 12:55:10 | |
| 24 Nov 2025 | ||
| 13:22:42 | ||
| 13:31:59 | ||
| 13:34:20 | ||
| this should work, can you provide the whole command" | 17:44:00 | |
| * this should work, can you provide the whole command? | 17:44:06 | |
try nixpkgs-review -- pr --print-result 464677 --package pkgsCross.aarch64-multiplatform.libcap | 19:51:52 | |
| it's a completely unrelated PR with no changes to libcap | 19:52:14 | |
| but I can evaluate it fine without nixpkgs-review | 19:52:41 | |
Download Screenshot 2025-11-24 at 11.53.43.png | 19:54:07 | |
| yeah I'm building from darwin | 19:54:30 | |
| where it's not available. But it can be cross-compiled to linux | 19:54:50 | |
| I mean it's broken in master until some changes from staging hit. But I should at least be able to evaluate it | 19:55:44 | |
Download image.png | 19:56:23 | |
| IIRC it's not still broken in master | 20:10:29 | |
| unless it broke again in the last couple of days | 20:10:39 | |
| Alyssa Ross when you have a minute can you take another look at the uclibc PR? | 20:15:34 | |
| Alyssa Ross: there's one more libcap issue that I fixed here: https://github.com/NixOS/nixpkgs/pull/461685 | 20:31:16 | |
| cross was fixed but not from darwin | 20:31:22 | |
| ah, I see | 20:32:04 | |
| I might not have a minute this week I'm afraid | 20:32:12 | |
| got it to build manually but I can't confirm with nixpkgs-review :D | 20:32:13 | |
| 21:10:24 | ||
| 25 Nov 2025 | ||
| 18:21:36 | ||
| Hey all, I'm just starting to get into cross compiling (x68 -> aarch64 for rpi 4b), and have some questions about how to best approach this. I'll start with my understanding and situation to make sure I didn't make a mistake:
Ideally I could use the cache and cross compile only if needed, but it looks like I can't do that without manually choosing specific packages to be cross compiled with My buildSystem is currently Ubuntu, so I can't just flip the nixos switch for binfmt emulation. I could probably apply the binfmt config manually if I want to go the emulation route, right? I suppose I might just be frustrated that I can't default crossSystem and opportunistically grab the non-cross packages from the aarch64 cache, though I know the technical reason why (store paths are functions of all inputs, and crossSystem is an input). I'm guessing this is currently an unsolved issue? Thanks! | 18:32:34 | |
| NixOS system cross is the exact same with flakes as it is without | 18:33:32 | |
| I get that; flakes are not my main issue on this. I'm just providing context there. | 18:35:43 | |
There's some packages cached https://github.com/NixOS/nixpkgs/blob/75c025c6135ca219cded2592343bef3daa4b39b9/pkgs/top-level/release-cross.nix#L239 | 18:37:22 | |
Yup binfmt is possible to setup on all distros | 18:38:09 | |