!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
129 Servers

Load older messages


SenderMessageTime
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
13 May 2026
@c2vi:matrix.orgc2vi (abandoned, new account @c2vi:ppc.social) changed their display name from c2vi to c2vi (abandoned, new account @c2vi:ppc.social).03:19:09
@c2vi:ppc.socialc2vi joined the room.03:24:52
15 May 2026
@nadia:nhp.shNadia does anyone know why clang for the cross system with useLLVM set (in a nix shell environment) would attempt to call gcc? 13:14:03
@nadia:nhp.shNadia it tries to call plain gcc and fails because it doesn't exist, if I include a gcc for the cross system in the shell it tries to call it but the compiler wrapper seems to pass clang flags to it 13:15:18
@nadia:nhp.shNadia(is nixpkgs even the right choice for cross compiling for embedded or should I just write my own derivations for building a toolchain?)13:25:02
@nadia:nhp.shNadiaunrelated question, how do I add more flags to gcc in the case class as -march/-mabi/etc?14:42:38
@artturin:matrix.orgArtturinShow your mkShell expr14:44:13
@artturin:matrix.orgArtturin Have you checked the env? 14:44:37
@artturin:matrix.orgArtturin * Have you checked the shell env? 14:44:46
@nadia:nhp.shNadiaDownload flake.nix14:48:56
@nadia:nhp.shNadia trying to build a simple int main() { return 0; } with this will reproduce the problem 14:56:48
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @nadia:nhp.sh
unrelated question, how do I add more flags to gcc in the case class as -march/-mabi/etc?
Which embedded machine are you trying to compile for? It’s pretty doable if you are willing to wrangle with nixpkgs config and have enough compute to build to cross compiler
17:03:32

Show newer messages


Back to Room ListRoom Version: 6