| 12 Dec 2024 |
K900 | We should probably have it not say that | 18:48:09 |
K900 | Or tell you to cross-compile to the other variant of your existing target | 18:48:30 |
K900 | i.e. aarch64-darwin to x86_64-darwin or vice versa | 18:48:39 |
K900 | Or equivalent for Linux | 18:48:43 |
Martin Häcker | I'm referring to https://nixos.org/manual/nixpkgs/stable/#chap-cross where it says:
The tests are conducted by a cluster called Hydra, which also builds binary packages from the Nix expressions in Nixpkgs for x86_64-linux, i686-linux and x86_64-darwin. The binaries are made available via a binary cache.
| 18:49:05 |
K900 | And? | 18:51:05 |
K900 | Oh wait | 18:51:51 |
K900 | Yeah OK I see how you read that wrong | 18:51:58 |
K900 | That's not just for cross | 18:52:00 |
K900 | That's for everything | 18:52:03 |
K900 | And mostly non-cross things | 18:52:06 |
K900 | And Hydra does build aarch64-darwin, the docs just are out of date | 18:52:17 |
Martin Häcker | So, the cross packages are generally not built / cached on hydra, or is the 24.11 channel just too new for them to be cached yet? | 18:53:16 |
K900 | Cross packages are generally not built | 18:53:33 |
K900 | We build a very small subset of specifically x86_64-linux to aarch64-linux | 18:53:43 |
Artturin | See https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/release-cross.nix for what is built | 18:54:04 |
Martin Häcker | so the fact that it seemed they where for darwin-x86 has some other reason | 18:54:04 |
K900 | You probably downloaded the native x86_64-darwin toolchain | 18:54:27 |
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 |