12 Dec 2024 |
K900 | Which is used to build the cross toolchain | 18:54:32 |
K900 | That should be cached for all four tier 1 targets | 18:54:39 |
Martin Häcker | Looking at https://github.com/NixOS/nixpkgs/blob/7f6f4d968db96de346a9b62d829e45cd5efd617c/pkgs/top-level/release-cross.nix#L16 it seems to me that there is darwin-x86 in there but not darwin-arm | 18:55:20 |
Martin Häcker | am I reading that wrong? | 18:55:23 |
K900 | I don't think much of that is evaluated, never mind built | 18:56:34 |
K900 | Hm it is actually | 18:57:13 |
K900 | It just is mostly broken | 18:57:18 |
K900 | https://hydra.nixos.org/eval/1810433 | 18:57:20 |
K900 | Which is to be expected | 18:57:23 |
K900 | Because Darwin to Linux cross is hard and also broken | 18:57:37 |
Martin Häcker | Yeah, I guess so. So for future reference, if I want to try and follow the tutorials there, either use a docker container to build this or a linux vm? | 18:59:02 |
Artturin | We probably want to replace x86_64-darwin there with aarch64-darwin since it's better supported nowadays, darwin to linux cross still broken though | 18:59:05 |
K900 | Yes | 18:59:11 |
Artturin | In reply to @dont.wanna.tell:matrix.org Yeah, I guess so. So for future reference, if I want to try and follow the tutorials there, either use a docker container to build this or a linux vm? Dunno what's the virt perf like but https://nixcademy.com/posts/macos-linux-builder/ | 18:59:33 |
Martin Häcker | In reply to @artturin:matrix.org We probably want to replace x86_64-darwin there with aarch64-darwin since it's better supported nowadays, darwin to linux cross still broken though I was thinking about filing a feature request for that. If I’d want that, where would be the best place for that? | 19:00:47 |
K900 | Honestly just drop Darwin from that set | 19:03:22 |
K900 | Unless someone steps up and says "we will maintain darwin to linux cross" | 19:03:32 |
Artturin | https://github.com/NixOS/nixpkgs/pull/364680 | 19:05:34 |
Martin Häcker | @k900:0upti.meI'm still a bit new, but that is something I am interested in | 19:09:48 |
K900 | It's not fun | 19:10:03 |
szlend | https://github.com/NixOS/nixpkgs/pull/361521 :D | 19:10:13 |
K900 | Especially when the VM route is right there | 19:10:20 |
szlend | glad to see someone else is interested, opened an issue a year back with no response | 19:10:59 |
K900 | Darwin to Linux cross is a purely theoretical exercise | 19:12:39 |
Martin Häcker | I did get it working (the compilation part) with some simple hello world example. So at least it’s not completely impossible | 19:13:25 |
Martin Häcker | At least a good part of the infrastructure compiles cleanly | 19:13:57 |
szlend | I've been using darwin -> aarch64-linux/x86_64-linux successfully for 3 years now | 19:14:43 |
szlend | my only complaint is that I wish the two major linux targets were cached | 19:15:34 |
szlend | my use case being able to cross-compile docker images without reaching out to a VM | 19:16:22 |
alexfmpe | Huh that's actually working? I set up the linux builder at work specifically to build docker images for x86_64 linux from dev mac laptops | 22:24:29 |