!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

564 Members
119 Servers

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


SenderMessageTime
19 May 2025
@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

Show newer messages


Back to Room ListRoom Version: 6