!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

573 Members
126 Servers

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


SenderMessageTime
24 May 2025
@neobrain:matrix.org@neobrain:matrix.org joined the room.14:01:33
@neobrain:matrix.org@neobrain:matrix.org Hi! Having a bit of trouble getting off the ground with cross-compiling in a nix-shell. I'm working on a mixed-architecture project (main component runs on ARM64, but additionally some x86-64 executables must be built) and I can't use binfmt_misc/qemu.
Do nix/nixpkgs still provide a simple way to install a cross-compiler (built for ARM64 and targeting x86-64) that I can manually invoke in a CMakeToolchain?
14:46:06
@neobrain:matrix.org@neobrain:matrix.org ... of course as usual, after an hour of looking the answer presents itself right after asking: x86Pkgs.buildPackages.gcc seems to be what I'm looking for (instead of x86Pkgs.gcc) 14:48:31
@neobrain:matrix.org@neobrain:matrix.org * ... of course as usual, after an hour of looking the answer presents itself right after asking: pkgsCross.gnu64.buildPackages.gcc seems to be what I'm looking for (instead of pkgsCross.gnu64.gcc) 14:48:58

Show newer messages


Back to Room ListRoom Version: 6