| 26 Jun 2021 |
Mic92 (Old) | binfmt support is documented here: https://github.com/cleverca22/nixos-configs/blob/master/qemu.nix | 09:55:38 |
manveru | Mic92: isn't that a pretty old way of doing it? i just set boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv7l-linux" ]; | 09:59:52 |
manveru | though i haven't tried that with hydra... it works for normal nix builds | 10:00:30 |
Mic92 (Old) | might be... I took it from here: https://github.com/nix-community/nixos-generators#cross-compiling | 10:00:40 |
Mic92 (Old) | If it works for normal builds it should work for hydra. | 10:00:53 |
wucke13 | It is not working for hydra. Hydra just claims that no machine is available for that arch. So there must be some way to tell hydra that the local machine supports said arch? | 10:47:39 |
das_j | wucke13: Is aarch64-linux mentioned in your /etc/nix/machines file? | 10:48:04 |
wucke13 | Said file does not exist | 10:48:37 |
wucke13 | So I guess, that's a No :D | 10:48:44 |
das_j | should be something like localhost x86_64-linux,i686-linux - 32 1 kvm,nixos-test,big-parallel,benchmark | 10:49:39 |
das_j | there is a nixos option for that | 10:49:43 |
das_j |
nix.buildMachines
| 10:50:01 |
das_j | (you should obviously add aarch64-linux to the systems) | 10:50:43 |
wucke13 | Reading through the module: Is there no way to omit sshing to localhost? | 10:52:46 |
das_j | there is. If the string is "localhost" it just implicitly builds locally ;) | 10:53:03 |
das_j | I learned that the hard way when I changed that string to the real hostname | 10:53:20 |
wucke13 | locahost for hostName? | 10:53:24 |
das_j | yes | 10:53:27 |
Rick (Mindavi) | And keep in mind that emulation is slow :) | 10:54:07 |
wucke13 | Would I also have to add i386-linux or is it implicitly always enabled if x86_64-linux is present? | 10:54:19 |
wucke13 | In reply to @rick:matrix.ciphernetics.nl And keep in mind that emulation is slow :) Time plays no role, it's university stuff :D | 10:54:32 |
das_j | it's i686-linux and you need to add it if you want to build for it | 10:54:35 |
wucke13 | Ah, got me. Thanks! | 10:54:47 |
wucke13 | I will try and report back. On that note, is there a way to force hydra into rebuild failed builds without changing the nix files? | 10:56:17 |
das_j | Yes, you can use the UI | 10:56:32 |
wucke13 | How that? | 10:56:38 |
das_j |  Download image.png | 10:57:13 |
das_j | in the eval | 10:57:18 |
das_j | URL should be something like https://hydra.local/eval/12345 | 10:57:51 |
| Jez (he/him) left the room. | 10:58:04 |