!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

576 Members
128 Servers

Load older messages


SenderMessageTime
10 Apr 2026
@siraben:matrix.orgsiraben
$ uname -mpsrv; sha256sum ./hello; ./hello     
Linux 6.18.9 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb  6 15:57:45 UTC 2026 x86_64 unknown
60e678addbe03a751c257e02019bb6c85636d7b6d6cc85c6f85e7fe0ef515dbf  ./hello
Hello, world!
$ uname -mpsrv; sha256sum ./hello; ./hello                  
Darwin 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:32:59 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8122 arm64 arm
60e678addbe03a751c257e02019bb6c85636d7b6d6cc85c6f85e7fe0ef515dbf  ./hello
Hello, world!
16:31:49
@siraben:matrix.orgsiraben

lol

$ file hello
hello: DOS/MBR boot sector; partition 1 : ID=0x7f, active, start-CHS (0x0,0,1), end-CHS (0x3ff,255,63), startsector 0, 4294967295 sectors
16:32:56
@siraben:matrix.orgsirabenworks: hello, tree, jq, lua, less, nano, sqlite, curl, bc, gnused, gnugrep16:55:47
@siraben:matrix.orgsiraben* works: hello, tree, jq, lua, less, nano, sqlite, curl (http only), bc, gnused, gnugrep16:56:02
@siraben:matrix.orgsirabentrying to minimize the patches needed16:59:12
@siraben:matrix.orgsirabenhttps://github.com/NixOS/nixpkgs/compare/master...siraben:nixpkgs:siraben/cosmopkgs22:13:41
@siraben:matrix.orgsirabenwould require too many changes to variants.nix22:13:55
@siraben:matrix.orgsirabena minimal version could be upstreamed but barely anything would build22:14:10
13 Apr 2026
@rasmata:matrix.org@rasmata:matrix.org joined the room.01:10:18
@rasmata:matrix.org@rasmata:matrix.org left the room.01:10:25
@alesya-h:nixos.devAlesya changed their display name from Alesya Huzik to Alesya.01:48:16
14 Apr 2026
@siraben:matrix.orgsirabenhttps://github.com/NixOS/nixpkgs/pull/510065 SuperH cross compilation support20:19:59
15 Apr 2026
@siraben:matrix.orgsirabenhttps://github.com/NixOS/nixpkgs/pull/510160 Argonaut RISC Core (ARC) cross compilation support06:31:15
@98765abc:mozilla.org@98765abc:mozilla.org left the room.06:50:12
17 Apr 2026
@c4lliope:matrix.orgc4lliope set a profile picture.08:36:50
@c4lliope:matrix.orgc4lliope changed their profile picture.08:41:45
21 Apr 2026
@bpub:matrix.orgBPub changed their profile picture.14:10:24
3 May 2026
@amy:catgirl.cloudAJ (they/them) changed their display name from A. (they/them) to AJ (they/them).18:04:26
7 May 2026
@kreuzgang:matrix.orgKreuzgang joined the room.05:58:19
@neobrain:matrix.org@neobrain:matrix.org left the room.21:10:19
@ortolanbunting3002:tchncs.deortolanbunting3002What is the best way to add additional pkgsCross targets to my nixpkgs instantiation?21:10:53
@alexfmpe:matrix.orgalexfmpe huh? pkgsCross.foo is basically foo from https://github.com/NixOS/nixpkgs/blob/master/lib/systems/examples.nix 21:55:14
@alexfmpe:matrix.orgalexfmpedo you mean ad-hoc anonymous targets?21:56:10
@alexfmpe:matrix.orgalexfmpe I think you just pass config etc inside --arg crossSystem
https://nixos.org/manual/nixpkgs/stable/#sec-cross-usage
21:56:31
8 May 2026
@ortolanbunting3002:tchncs.deortolanbunting3002I wanted to have one pkgs object with additional pkgsCross targets so that I would only have to instantiate nixpkgs once. But I now went over to instantiating it once for every target that I need.00:09:51
@ortolanbunting3002:tchncs.deortolanbunting3002

Are these bugs?

nix-build -E '(import <nixpkgs> { crossOverlays = [(_: _: {})]; }).glibc'
nix-build -E '(import <nixpkgs> { crossOverlays = [(_: _: {})]; }).buildPackages.perl.pkgs.GlibObjectIntrospection'

I'm getting infinte recursion.
I'm guessing crossOverlays don't work if localSystem == crossSystem. But maybe nixpkgs should error then?
And in the second case the target's packages probably leak into GlibObjectIntrospection's dependencies

00:18:12
@siraben:matrix.orgsirabenhttps://github.com/NixOS/nixpkgs/pull/462500 bmake cross compilation on darwin pr has been in review fro some time06:44:52
@siraben:matrix.orgsiraben* https://github.com/NixOS/nixpkgs/pull/462500 bmake cross compilation on darwin pr has been in review for some time06:44:55
@jopejoe1:matrix.orgjopejoe1 changed their display name from jopejoe1 (4094@epvpn) to jopejoe1.08:44:20
@hxr404:tchncs.de@hxr404:tchncs.de left the room.09:20:41

Show newer messages


Back to Room ListRoom Version: 6