!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

582 Members
128 Servers

Load older messages


SenderMessageTime
18 Jul 2025
@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
@artturin:matrix.orgArtturin Let's add doInstallCheckCross? 02:04:23
@colin:uninsane.orgColin
In reply to @artturin:matrix.org
Let's add doInstallCheckCross?
hmm, there are some old TODOs about not forcing doInstallCheck to be false on cross. idk if those might still be relevant
02:05:12
@artturin:matrix.orgArtturin
In reply to @colin:uninsane.org
is there an easy way i can build all passthru.tests for every package i have on my system?
I'm not aware of an easy way
02:07:12
@colin:uninsane.orgColinRedacted or Malformed Event02:08:04
@colin:uninsane.orgColin
In reply to @colin:uninsane.org
hmm, there are some old TODOs about not forcing doInstallCheck to be false on cross. idk if those might still be relevant
https://github.com/NixOS/nixpkgs/blob/aa030ff8678c65967b09472893bab8f35c643d15/pkgs/stdenv/generic/make-derivation.nix#L322-L324
02:08:07
@thewholeworldisburning123:rougebordeaux.xyzmissbehaves changed their display name from thewholeworldisburning123 💕 to missbehaves.19:49:29
22 Jul 2025
@neobrain:matrix.orgneobrainIs it possible to use nix to install a cross-compiling GCC (including libstdc++) targeting a non-nix runtime environment (i.e. using the host libc and reading libraries from /usr/lib)?08:39:50
@neobrain:matrix.orgneobrain(I'm assuming this would be equivalent to compiling gcc without any nix-specific patches, which is probably easier said than done)08:40:53
@neobrain:matrix.orgneobrain* Is it possible to use nix to install a cross-compiling GCC (including libstdc++) targeting a non-nix runtime environment (i.e. using the host libc and reading libraries from /usr/lib instead of referencing the nix store)?08:42:01
23 Jul 2025
@implr:hackerspace.plimplr set a profile picture.10:57:42
@implr:hackerspace.plimplr changed their profile picture.11:22:01
24 Jul 2025
@greg:thehellings.comGreg HellingsI've used it to build Windows binaries, so I'm sure what you're asking for is possible. There are lots of targets under the pkgsCross collection, including Android, many flavors of BSD, Windows, Darwin, and more.04:07:35
@artturin:matrix.orgArtturin
In reply to @neobrain:matrix.org
(I'm assuming this would be equivalent to compiling gcc without any nix-specific patches, which is probably easier said than done)
https://trofi.github.io/posts/289-building-vanilla-gcc-on-nixos.html
08:34:15
@neobrain:matrix.orgneobrainThanks, I'll have to play around with that!19:58:39
25 Jul 2025
@vuks:matrix.orgVuks joined the room.18:01:51
26 Jul 2025
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.08:27:11
27 Jul 2025
@quadradical:federated.nexusQuadRadical (Ping) changed their display name from QuadRadical (Ping / Reply) to QuadRadical (Ping).19:57:24
28 Jul 2025
@ytr:tchncs.deytr set a profile picture.10:06:36
1 Aug 2025
@skoove:catgirl.cloudskoove changed their profile picture.08:08:51
@skoove:catgirl.cloudskoove changed their profile picture.08:08:55
6 Aug 2025
@firefly:raccoon.collegeFireFly joined the room.07:16:50

Show newer messages


Back to Room ListRoom Version: 6