Nix Cross Compiling | 580 Members | |
| 130 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Mar 2025 | ||
| But I have plans for things of that nature | 05:11:50 | |
It'll be some time but I'm working on decoupling things in a way that allows up to swap out toolchain related things more ad-hoc with {host,build,target}Platform. | 05:12:38 | |
| oh thtat's cool; I have some really bad Nix code trying to build some stuff very specifically in musl | 19:16:06 | |
| to avoid "mass rebuilds" -- it's so fragile. I tried moving things to overlay and too much borked | 19:16:18 | |
| 19 Mar 2025 | ||
| 21:12:18 | ||
| 21 Mar 2025 | ||
| 11:41:12 | ||
| 24 Mar 2025 | ||
| I'm having trouble parsing the logic behind hostOffset in setup hooks. Is the idea that if I'm currently running for a package that was brought in as a buildInput it'll be 0 and if it's a nativeBuildInput it'll be 1? | 01:52:53 | |
| -1 for native build input iirc? | 03:09:34 | |
| But I could forget | 03:09:38 | |
| 26 Mar 2025 | ||
| Is there an example somewhere of where multilib + crosspkgs is broken? From #380325 What would it take to fix it? | 18:57:13 | |
| 18:57:22 | ||
| 19:00:25 | ||
| 19:01:16 | ||
| Hello! I'm new to cross-compiling on NixOS. I want to compile C code for my custom M68k computer. This is what my flake.nix file currently looks like:
I think I want to remove the | 19:04:42 | |
| Easiest is probably to just cherry-pick that patch into your own nixpkgs fork | 19:06:20 | |
| And then it should work | 19:06:25 | |
| I think | 19:06:26 | |
| I guess I don't really know what needs to go in the flake.nix file to start, even if I point it at my custom nixpkgs repo | 19:06:49 | |
| Oh | 19:07:00 | |
| Like so that I have access to an m68k cross compiler for my C code | 19:07:02 | |
| We don't have an m68k-unknown-elf platform do we | 19:07:08 | |
Then something like | 19:08:12 | |
| ahh I see | 19:08:38 | |
| thank you this is super helpful | 19:08:43 | |
Should that override cc? cc -march=68000 mandelbrot.c says the arch isn't supported. I'm not seeing anything under m68k-* either | 19:13:57 | |
| Uhh | 19:19:46 | |
| Can you post the whole thing | 19:19:48 | |
| It should be prefixed | 19:19:56 | |
I'm doing | 19:20:59 | |
It's crossSystem | 19:22:02 | |