!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

578 Members
128 Servers

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


SenderMessageTime
18 Jul 2025
@dramforever:matrix.orgdramforeverhow do you even make this architecture specific21:07:15
@dramforever:matrix.orgdramforeverthere's literally one RELR format for all of ELF21:07:24
@dramforever:matrix.orgdramforevertwo if you have to split 32 and 6421:07:37
@dramforever:matrix.orgdramforeveranyway </rant>21:07:41
@emilazy:matrix.orgemilyI assume from their perspective they were innovating by not having entirely separate compiler codebases for every architecture/21:10:56
@emilazy:matrix.orgemily* I assume from their perspective they were innovating by not having entirely separate compiler codebases for every architecture?21:10:57
@emilazy:matrix.orgemilythough I don't know what the pre-GCC landscape was like21:11:07
@colemickens:matrix.orgcolemickens 🏳️‍🌈looks like ruby broke22:56:04
@colemickens:matrix.orgcolemickens 🏳️‍🌈I wonder why my system even uses ruby 🤔22:56:13
19 Jul 2025
@colin:uninsane.orgColin since doCheck = true and doInstallCheck = true act as no-op when cross compiling to an incompatible architecture, what's the right way to express a check phase when authoring a cross-aware package? 01:39:10
@emilazy:matrix.orgemilywhat kind of check are you doing that works with cross?01:44:49
@colin:uninsane.orgColin run shellCheck, ideally even $out/bin/$pname --help under an emulator as a smoke test 01:47:22
@colin:uninsane.orgColini just deployed some totally invalid shell scripts to a aarch64 host & didn't realize until after the deploy. i'm using the oils shell, and it's not 100% backward compatible across updates; in this case a script i wrote a year ago suddenly became invalid. would have caught that with any trivial checkPhase.01:50:44
@artturin:matrix.orgArtturin
In reply to @colin:uninsane.org
since doCheck = true and doInstallCheck = true act as no-op when cross compiling to an incompatible architecture, what's the right way to express a check phase when authoring a cross-aware package?
postInstall / passthru.tests https://github.com/NixOS/nixpkgs/blob/aa030ff8678c65967b09472893bab8f35c643d15/pkgs/by-name/si/siketyan-ghr/package.nix#L41
02:01:50
@colin:uninsane.orgColin is there an easy way i can build all passthru.tests for every package i have on my system? 02:03:52

Show newer messages


Back to Room ListRoom Version: 6