!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
127 Servers

Load older messages


SenderMessageTime
19 May 2025
@oak:universumi.fioak 🏳️‍🌈♥️ changed their display name from oak to oak 🏳️‍🌈♥️.11:01:00
@aliarokapis:matrix.orgAlexandros Liarokapisthis is kind of stupid but, does nixpkgs support using the avr pkgsCross with libstdc++ available ?13:17:59
@k900:0upti.meK900Uhh 13:19:39
@k900:0upti.meK900 I'm not even sure libstdc++ supports 8-bit targets 13:19:57
@aliarokapis:matrix.orgAlexandros LiarokapisI had this working through https://gitlab.com/avr-libstdcxx a few years back for gcc-11 but was using docker back then. It's too niche really, so I don't have many hopes.13:22:57
@emilazy:matrix.orgemilyhthis is a silly question but… how do you actually specify all of build/host/target when instantiating Nixpkgs?13:25:11
@emilazy:matrix.orgemily* this is a silly question but… how do you actually specify all of build/host/target when instantiating Nixpkgs?13:25:16
@k900:0upti.meK900You don't13:28:53
@k900:0upti.meK900You pass in system and crossSystem13:29:02
@k900:0upti.meK900You can't actually specify all three13:29:07
@emilazy:matrix.orgemilyright, but then…13:31:50
@emilazy:matrix.orgemilyhow do you actually build stuff for that combo?13:31:54
@k900:0upti.meK900What do you mean?13:32:04
@emilazy:matrix.orgemilylet's say I want to build an x86 Linux rustc that targets AArch64 Linux on Darwin. how do I do that?13:32:10
@k900:0upti.meK900I don't think we really expose Canadian cross like that13:32:54
@emilazy:matrix.orgemilythen how come we even support it :P13:33:11
@emilazy:matrix.orgemily can you make it happen with pkgsCross? 13:33:17
@emilazy:matrix.orgemilylooks like no13:34:16
@emilazy:matrix.orgemilyat least not in the obvious way13:34:22
@k900:0upti.meK900We don't really13:34:33
@qyliss:fairydust.spaceAlyssa RosspkgsCross is just wrapping instantiating nixpkgs with a crossSystem13:34:39
@emilazy:matrix.orgemilywe kinda do considering how much logic we have for three cross platforms…13:34:54
@k900:0upti.meK900The whole build/host/target thing doesn't actually mean you can instantiate a nixpkgs for arbitrary build/host/target13:35:09
@k900:0upti.meK900Honestly I still want to kill off target at some point13:35:32
@emilazy:matrix.orgemilywhy not? in most cases we handle it correctly13:35:39
@k900:0upti.meK900I forgot why it blows up the platform offset logic but it does13:36:44
@k900:0upti.meK900Honestly that whole thing is the primary reason I really want to kill target13:37:09
@emilazy:matrix.orgemilywell that's dumb13:37:09
@k900:0upti.meK900Having just two platform offsets and having them saturate makes things SO much easier13:37:22
@emilazy:matrix.orgemily targetPlatform is bad, but I thought we were at least getting value out of it 13:37:21

Show newer messages


Back to Room ListRoom Version: 6