!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

533 Members
110 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughan nix build github:matthewcroughan/nixos-musl/refactor#nixosConfigurations.gnu-musl.config.system.build.vm 15:40:21
@matthewcroughan:defenestrate.itmatthewcroughan dramforever: 👏 15:40:31
@matthewcroughan:defenestrate.itmatthewcroughanIt worked15:40:32
@matthewcroughan:defenestrate.itmatthewcroughanStill nobody to review my PRs that I'm holding as patches in my own repo 15:43:59
@matthewcroughan:defenestrate.itmatthewcroughanI'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.itmatthewcroughanJust 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.itmatthewcroughanThat is an ouch...15:59:34
@matthewcroughan:defenestrate.itmatthewcroughanIt should at least report or mark that it is broken15:59:41
@matthewcroughan:defenestrate.itmatthewcroughanotherwise that's just some form of silent bug that breaks other arches15:59:49
@matthewcroughan:defenestrate.itmatthewcroughanI think there should be some messaging somewhere 16:00:03
@matthewcroughan:defenestrate.itmatthewcroughanCan we carry this musl patch in nixpkgs until they merge it?16:00:17
@dramforever:matrix.orgdramforeverno16:00:37
@matthewcroughan:defenestrate.itmatthewcroughanI think this is equivalent to how we patch many things, like kmod or systemd because we need recursion 16:00:38
@matthewcroughan:defenestrate.itmatthewcroughan* 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.itmatthewcroughanI 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.itmatthewcroughanBTW, if you feel like more hacking, kmod needs to be version bumped, and that patch is crazy16:01:17
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/kmod/module-dir.patch16:01:33
@matthewcroughan:defenestrate.itmatthewcroughan This makes kmod accept a list of arguments instead of a hardcoded fhs dir 16:02:04
@matthewcroughan:defenestrate.itmatthewcroughannecessary for nixos, similar to your musl patch :)16:02:11
@matthewcroughan:defenestrate.itmatthewcroughanAnd 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.itmatthewcroughanIs 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.itmatthewcroughani 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.itmatthewcroughanIt's a bit of a blurry line16:05:12

Show newer messages


Back to Room ListRoom Version: 6