| 12 Oct 2021 |
sterni | ah right looked in the wrong place (for 10) | 13:20:59 |
sterni | likely the sanitizers-nongnu.patch for musl then | 13:21:06 |
trofi | Yeah, -nongnu patch touches the same removed CY* enums and fields. I'll clean musl patches up (should be a matter of clean removal of a few CY*-specific hunks) and send out a fix in ~1 hour. | 16:59:12 |
sterni | nice | 17:36:18 |
trofi | Proposed as https://github.com/NixOS/nixpkgs/pull/141397. I also noticed that llvm_{8..git} completely drop this backport probably due to the same conflict. I'll have a look at it and restore patches for newer versions. Should be trivial. | 19:00:38 |
| 13 Oct 2021 |
| Janne Heß joined the room. | 15:17:29 |
Janne Heß | Hey, I don't know if this is the correct channel for these kinds of questions but I couldn't find any so this one is my best guess. Is there any easy way to test cross NixOS builds? Like my desktop or any other system? The reason I'm asking is that I need to test whether a PR that I created breaks cross builds | 15:19:08 |
sterni | do you want to test a package or a system configuration? | 15:36:38 |
Janne Heß | a full system configuration | 15:42:21 |
Janne Heß | It's about a PR that changes top-level.nix 👀 | 15:42:59 |
sterni | Janne Heß: have you tried (pkgsCross.<platform>.nixos /path/to/configuration.nix).build? | 15:43:46 |
sterni | ah it's not called build isn't it | 15:44:50 |
sterni | * ah it's not called build is it | 15:44:55 |
sterni | * Janne Heß: have you tried (pkgsCross.<platform>.nixos /path/to/configuration.nix).toplevel? | 15:45:07 |
Janne Heß | config.system.build.toplevel probably | 15:45:13 |
sterni | yeah | 15:45:17 |
sterni | you probably need a quite minimal configuration to try | 15:45:52 |
sterni | mine fails instantly because we can't cross compile perl :) | 15:46:01 |
Janne Heß | oh we can't cross-compile perl? | 15:46:16 |
sterni | oh hm we can | 15:46:46 |
sterni | ah we can't compile it statically? iirc | 15:46:57 |
sterni | seems like git can't be cross compiled with perlSupport rather | 15:47:38 |
sterni | so no gitFull for me | 15:47:59 |
Janne Heß | Thanks, your hints worked \o/ So the trick is to use
((import <nixpkgs> {}).pkgsCross.aarch64-multiplatform.nixos /tmp/lal.nix ).config.system.build.toplevel
and then the minimal configuration:
{ boot.loader.grub.enable = false; fileSystems."/".device = "tmpfs"; }
| 15:49:32 |
Janne Heß | * Thanks, your hints worked \o/ So the trick is to use
((import <nixpkgs> {}).pkgsCross.aarch64-multiplatform.nixos /tmp/lal.nix).config.system.build.toplevel
and then the minimal configuration:
{ boot.loader.grub.enable = false; fileSystems."/".device = "tmpfs"; }
| 15:49:55 |
Janne Heß | Let's see if it builds from a stock nixpkgs… | 15:51:11 |
sterni | alternatively you can pass crossSystem to nixpkgs | 15:51:15 |
sterni | I think you can set the system in the configuration as well, but not quite sure | 15:51:39 |
Janne Heß | Ah yes there's nixpkgs.config I think… but if it works like this I'm happy (or rather Alyssa because I don't break her setup again) | 15:52:20 |
| 15 Oct 2021 |
| Janne Heß left the room. | 09:42:35 |