!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

907 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
12 Mar 2026
@dramforever:matrix.orgdramforever *

i have made an abomination: binfmt-misc support in nix https://github.com/dramforever/nix/tree/binfmt-misc
see also tracking stuff in https://github.com/dramforever/nix/pull/25
tl;dr nix --extra-platforms x86_64-linux --binfmt-misc 'x86_64-linux=:x86_64-linux:M:...' build ...
"just" requires linux 6.7+ kernel and user namespaces, and it works with diverted store and uid-range

featuring: double namespacing!

not yet even draft pr quality, docs are "i may be here to answer questions", but it's working well enough that i think it's worth having y'all take a look

12:52:20
@dramforever:matrix.orgdramforever basically, this lets you run emulated-native builds with something like pkgsStatic.qemu-user (e.g. non-cross aarch64-linux builds on x86_64-linux) without configuring the emulators globally. you don't even need root for that.
and also if you do have emulators configured globally this lets you get rid of them in the build sandbox, giving you more purity in cross builds.
13:10:32
@dramforever:matrix.orgdramforeverboot.emulatedSystems but (hopefully) better13:11:06
@dramforever:matrix.orgdramforever * basically, this lets you run emulated-native builds with something like pkgsStatic.qemu-user (e.g. non-cross aarch64-linux builds on x86_64-linux) without configuring the emulators globally. you don't even need root for that if you're fine with a diverted store.
and also if you do have emulators configured globally this lets you get rid of them in the build sandbox, giving you more purity in cross builds.
13:14:39
@artemist:nixos.devArtemis Tosini (NixOS)We were considering something somewhat related on FreeBSD at some point: configure the linuxulator in the nix sandbox runner so that we can run native linux derivations. It would be useful for bootstrapping some programming languages that only provide linux binaries (e.g. dotnet, rust on aarch64)15:10:28
@magic_rb:matrix.redalder.orgmagic_rb(Linuxulator lol, thought its something you just made up, nope its the term used by freebsd docs, lol)15:12:06
@popcorn:xaos.space@popcorn:xaos.space left the room.16:42:59
@sebastian:srx.digitalcrstl changed their profile picture.18:02:38
@lisanna-dettwyler:matrix.orgLisanna If I do copyPaths(sshStore1, sshStore2, ...), will everything get funneled through the local host? Or will a connection be made from the machine hosting sshStore1 to sshStore2? 21:55:29
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @lisanna-dettwyler:matrix.org
If I do copyPaths(sshStore1, sshStore2, ...), will everything get funneled through the local host? Or will a connection be made from the machine hosting sshStore1 to sshStore2?
The local machine will pull from store1 and push into store2.
23:55:30
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) There aren’t really mechanisms for doing ssh -> ssh copies directly 23:56:10
@lisanna-dettwyler:matrix.orgLisannaok, I suppose to do that I will have to just invoke ssh-copy-closure on remote 1 to remote 223:57:01
@lisanna-dettwyler:matrix.orgLisanna* ok, I suppose to do that I will have to just invoke nix-copy-closure on remote 1 to remote 223:57:25
@lisanna-dettwyler:matrix.orgLisannathanks for clarifying <323:57:49
13 Mar 2026
@lisanna-dettwyler:matrix.orgLisanna Just checking my understanding, but there's no way with the current implementation for a build-hook to receive the full build graph (i.e. a top-level derivation with unbuilt dependencies), right? But acting like a store or a NIX_REMOTE it would? The nix client doesn't piecemeal request builds from the daemon in topological order, it just sends the full build graph, right? 18:07:47
14 Mar 2026
@amadaluzia:tchncs.deamadaluzia[tde] joined the room.14:31:56
@amadaluzia:unredacted.orgamadaluzia -> 4d2.org changed their display name from amadaluzia to amadaluzia[uorg].18:49:20
@amadaluzia:4d2.orgamadaluzia joined the room.19:29:21
@amadaluzia:unredacted.orgamadaluzia -> 4d2.org changed their display name from amadaluzia[uorg] to amadaluzia -> 4d2.org.21:21:41
15 Mar 2026
@wtvb:matrix.orgulucs joined the room.19:13:08
@isabel:isabelroses.comisabel changed their profile picture.20:54:48
@isabel:isabelroses.comisabel changed their profile picture.20:55:04
16 Mar 2026
@theo-paris:matrix.org@theo-paris:matrix.org left the room.00:37:41
@purepani:matrix.orgpurepani changed their display name from purepani to purepanid.05:55:18
@purepani:matrix.orgpurepani changed their display name from purepanid to purepani.05:55:53
19 May 2021
@eelco:nixos.org@eelco:nixos.org changed the history visibility to "world_readable" from "shared".15:40:14
@eelco:nixos.org@eelco:nixos.org changed the room name to "Nix Hackers" from "Nix Development".15:45:04
@eelco:nixos.org@eelco:nixos.org changed the room topic to "For people hacking on the Nix package manager itself" from "Development of the Nix package manager".15:45:04
@casey:hubns.netcransom joined the room.15:45:08
@sumner:sumnerevans.comsumner joined the room.15:45:19

Show newer messages


Back to Room ListRoom Version: 6