!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

568 Members
124 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Still nobody to review my PRs that I'm holding as patches in my own repo 15:43:59
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I've tested them pretty extensively, they're working, and they just live in https://github.com/MatthewCroughan/nixos-musl/blob/refactor/musl.nix#L80-L11915:44:55
@dramforever:matrix.orgdramforevernice15:56:33
@dramforever:matrix.orgdramforeverif it looks like nothing else has broke i'll send it to musl15:56:45
@dramforever:matrix.orgdramforeveror maybe think harder about how to deal with arch specific code15:56:58
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Just make it crash with -95 on every platform except for aarch64 😎15:58:18
@dramforever:matrix.orgdramforeveri already made it fall back to old behavior for unimplemented architectures15:59:00
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)That is an ouch...15:59:34
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)It should at least report or mark that it is broken15:59:41
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)otherwise that's just some form of silent bug that breaks other arches15:59:49
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I think there should be some messaging somewhere 16:00:03
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Can we carry this musl patch in nixpkgs until they merge it?16:00:17
@dramforever:matrix.orgdramforeverno16:00:37
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I think this is equivalent to how we patch many things, like kmod or systemd because we need recursion 16:00:38
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)* I think this is equivalent to how we patch many things, like kmod or systemd because we need recursion and lists16:00:43
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I don't see how this patch is any more or less relevant than some of the kmod or systemd patches we carry16:00:58
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)BTW, if you feel like more hacking, kmod needs to be version bumped, and that patch is crazy16:01:17
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/kmod/module-dir.patch16:01:33
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) This makes kmod accept a list of arguments instead of a hardcoded fhs dir 16:02:04
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)necessary for nixos, similar to your musl patch :)16:02:11
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)And we're 3 versions behind on kmod because they've moved to meson, and this patch isn't upstreamed16:02:55
@dramforever:matrix.orgdramforevervendoring my musl patch in nixpkgs is a violation of https://do-not-ship-work-in-progress.gitlab.io/16:03:59
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Is it any more or less WIP than the kmod patch?16:04:31
@dramforever:matrix.orgdramforeverthe kmod module-dir.patch doesn't apply because it's nixos specific16:04:34
@dramforever:matrix.orgdramforeverso we can't not ship it in nixpkgs16:04:44
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)i would argue that the musl patch is nixos specific too, at least I'm sure when you upstream it someone might say something like that 16:04:54
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)It's a bit of a blurry line16:05:12
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I mean, I wonder how many other edge cases are encountered in musl in nixpkgs because of the lack of the patch you just made 16:05:51
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I'm sure it shows up in other places 16:06:03
@dramforever:matrix.orgdramforeverwhen upstream says they don't want it then we'll talk16:06:28

Show newer messages


Back to Room ListRoom Version: 6