Nix Cross Compiling | 577 Members | |
| 126 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Feb 2026 | ||
| Tempted to get it off the shelf now, but life has other priorities :) | 11:45:05 | |
| Kid did enjoy playing the OSX version of Starcraft on it | 11:46:03 | |
| i won't post mine, it's considerably more messed up. dude from bavaria shipped it with just a single layer of cardboard taped around it, and DHL did its thing. 😅 | 11:47:21 | |
| all the nice aluminium either has holes poked into it or has mostly broken off the frame. it's sitting on some wood blocks, otherwise it'd stand at a 45° angle. | 11:48:56 | |
| I got it for 50EUR on Marketplace, while away from home. Just could not pass. Then it travelled in a car north to south almost all Europe. | 12:28:05 | |
| 18:26:58 | ||
| (#exotic:nixos.org might be a better channel for this until this rolls back to being about issues with cross, but I'll reply here ig) https://github.com/NixOS/nixpkgs/pull/488831 is what I needed for the installer to be recognised (and for it to look nice in the boot menu) https://github.com/OPNA2608/nixpkgs/commit/848a9e2f68e726b3727d10e759074eae3c6414e6 has the config i'm using env "NIX_PATH=nixpkgs=$PWD:nixos-config=$PWD/newworldmac-nixos-installer.nix" nom-build ./nixos -A config.system.build.images.iso is what i've been using to build it | 19:23:32 | |
| * (#exotic:nixos.org might be a better channel for this until this rolls back to being about issues with cross, but I'll reply here ig) https://github.com/NixOS/nixpkgs/pull/488831 is what I needed for the installer to be recognised (and for it to look nice in the boot menu). https://github.com/OPNA2608/nixpkgs/commit/848a9e2f68e726b3727d10e759074eae3c6414e6 has the config i'm using. env "NIX_PATH=nixpkgs=$PWD:nixos-config=$PWD/newworldmac-nixos-installer.nix" nom-build ./nixos -A config.system.build.images.iso is what i've been using to build it.and the wip/ppc64-installer branch on my nixpkgs fork has the full nixpkgs state that i've been using to build & test everything. cherrypicked fixes from master-past-fork and staging, and relevant open PRs. | 19:31:44 | |
| 10 Feb 2026 | ||
| 10:28:26 | ||
| 10:36:46 | ||
| 19:48:27 | ||
| 22:42:57 | ||
| 11 Feb 2026 | ||
| Thank you! I will try it out on weekend and let you know. For now I am preparing electricity in the mancave. Wife wants me out of the bedroom with my gear :D | 06:48:00 | |
| the screenshot of boot menu is epic | 11:22:49 | |
| I am starting on the build | 11:23:01 | |
| trying to YOLO the cross compile. If that fails, I will move to a native build or try QEMU static | 12:04:06 | |
| https://github.com/NixOS/nixpkgs/issues/473862#issuecomment-3872075407 has a change to rust-bindgen which may get you further, if you fail on smth with
| 12:08:54 | |
| it stopped on GRUB:
It tried to generate fonts and got confused between host and cross system it seems. No worries, I will try it on a native system on the weekend | 17:06:23 | |
i feel like i had fixed that at some point when i tried to test grub2_ieee1275 built cross… | 17:28:03 | |
ah, i must've excluded that to get rid of 10.rebuild-nixos-tests… | 17:29:48 | |
| https://github.com/NixOS/nixpkgs/commit/5dd035f7ff49bf2ff560720e46d5505cd02e1367 try applying this | 17:30:37 | |
* ah, i must've excluded that to get rid of 10.rebuild-nixos-tests on the grub2_ieee1275 init, and then forgotten about submitting that separately… | 17:37:15 | |
| applied, and re-trying | 17:59:03 | |
building the BootX with the fancy nixos flake icon cross fails. moving ppm2osbadgeicon from the let block into pkgs/by-name/pm/ppm2osbadgeicons so it doesn't try to run a cross-compiled binary should fix it… | 18:17:28 | |
| 12 Feb 2026 | ||
| it did not get that far yet. Cross compiling libqrtr fails:
any direction I should look at? I am clsoe to finishing the installer cross compile | 07:58:27 | |
| this one has some special logic for meson cross-compile: | 08:28:03 | |
| it tried to use the following qemu wrapper: | 09:58:36 | |
| and seems it passed some ppc64 binaries in the LD_ paths I think | 09:58:56 | |
| qemu-ppc64 seems to work fine, it is my host native binary | 09:59:42 | |
| 10:20:22 | ||