!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
129 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
11 Mar 2025
@alexfmpe:matrix.orgalexfmpeer, rather, bisected down to https://github.com/NixOS/nixpkgs/pull/356162 which fixes that issue13:42:12
@alexfmpe:matrix.orgalexfmpe I guess there's some sysroot shenanigans I don't understand going on and having -nostdlibinc is messing with it? 13:43:50
@alexfmpe:matrix.orgalexfmpe hmm though... merely adding && !targetPlatform.isAndroid seems risky for non-nixos linux as /usr/include can leak there? 13:49:30
@qyliss:fairydust.spaceAlyssa RossRedacted or Malformed Event13:52:46
13 Mar 2025
@phanirithvij:matrix.orgphanirithvij
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc

nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.tinc

any reason why lib.systems.examples, examples is there

05:51:13
@phanirithvij:matrix.orgphanirithvij *
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc

nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.tinc

any reason why lib.systems.examples, examples is there

05:51:19
@phanirithvij:matrix.orgphanirithvij *
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc
nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.tinc

any reason why lib.systems.examples, examples is there

05:51:37
@artturin:matrix.orgArtturin
In reply to @phanirithvij:matrix.org
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.aarch64-multiplatform' -A tinc
nix-build '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.tinc

any reason why lib.systems.examples, examples is there

It's easier to refer to existing example platforms than to write all the attrs, some platforms have more than just config https://github.com/NixOS/nixpkgs/blob/master/lib/systems/examples.nix

pkgsCross sets are made from examples
https://github.com/NixOS/nixpkgs/blob/b1f2198021490b51fb92b8b09db97b9ba2a7b4ce/pkgs/top-level/stage.nix#L197

05:55:54
@ashwinmathi:matrix.orgAshwin Mathi joined the room.14:58:36
@rosssmyth:matrix.org@rosssmyth:matrix.orgWould it be possible to add a new default/example pkgsCross system that is basically the same as arm-embedded but with newlib-nano? My goal would be to get that GCC cached so that I could use a newer GCC since it seems that latest gcc-arm-embedded update (14) PR was denied. 18:55:20

Show newer messages


Back to Room ListRoom Version: 6