!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
129 Servers

Load older messages


SenderMessageTime
15 Mar 2025
@implr:hackerspace.plimplror am i just missing something obvious17:10:14
@bitestring:matrix.orgbitestring Hi, any haskell.nix experts here? Could you please share a minimal flake.nix that can compile my Haskell library to Android aarch64? Documentation did not help at all. 17:10:48
@implr:hackerspace.plimplrnevermind, it is possible, i was just setting hostplatform/buildplatform wrong in colmena18:06:58
16 Mar 2025
@archercatneo:matrix.orgarchercatneo joined the room.15:30:01
17 Mar 2025
@rhelmot:matrix.orgrhelmotis qt cross just totally busted? I'm failing both aarch64-linux and x86_64-freebsd cross with errors related to multiple qtbases ending up in inputs03:22:00
@rhelmot:matrix.orgrhelmotI found https://github.com/NixOS/nixpkgs/pull/267311 but I don't parse how it would help in this case03:22:47
@rhelmot:matrix.orgrhelmot * is qt cross just totally busted? I'm failing both aarch64-linux and x86_64-freebsd cross for qt5.qtsvg with errors related to multiple qtbases ending up in inputs 03:23:30
@rhelmot:matrix.orgrhelmotcommenting out the propagatedBuildInputs/depsTargetTargetPropagated assignment on qmake-hook and that seems to fix some things but the ramifications... unknown lol. will run nixpkgs-review soon03:51:11
@artturin:matrix.orgArtturin
In reply to @rhelmot:matrix.org
is qt cross just totally busted? I'm failing both aarch64-linux and x86_64-freebsd cross for qt5.qtsvg with errors related to multiple qtbases ending up in inputs
Yup and there's a few pr which may fix it
03:59:02
@artturin:matrix.orgArtturin Use the cross label and in:title qt5 03:59:24
@rosscomputerguy:matrix.orgTristan RossYes, I've been wanting the issue fixed so I can get Steam "built" crossly onto aarch64 so I can do gaming on Ampere lol. It's still been broken.04:04:22
@emilazy:matrix.orgemilyI thought Qt 5 cross was inherently broken upstream or something04:10:45
@emilazy:matrix.orgemilybut that Qt 6 could work04:10:51
@greg:thehellings.comGreg HellingsQt5 can be made to work, depending on target. Here's the patchset that Fedora uses to cross compile qt5 base for just Mingw targets: https://src.fedoraproject.org/rpms/mingw-qt5-qtbase/tree/rawhide04:40:06
@greg:thehellings.comGreg HellingsBut that is a LOT of patches. 04:40:16
@rhelmot:matrix.orgrhelmotthanks for the hints, after a bit of tentative hacking I have cast qt5 into the shadow realm and am now building with qt607:46:50
@rhelmot:matrix.orgrhelmoton the gtk side, I got pkgsCross.x86_64-freebsd.xfce.xfdesktop to build while on a 14 hours trans-pacific flight...07:48:13
@rhelmot:matrix.orgrhelmot * on the gtk side, I got pkgsCross.x86_64-freebsd.xfce.xfdesktop to build while on a 14 hour trans-pacific flight... 07:48:23
@rhelmot:matrix.orgrhelmotif only gitlab.freedesktop.org were up... this could truly be the year of the freebsd desktop07:48:54
18 Mar 2025
@axman6:matrix.orgAxman6 Is there an easy way to make a wrapper for a binary which executes it using hostPlatform.emulator? 01:03:34
@artturin:matrix.orgArtturin
In reply to @axman6:matrix.org
Is there an easy way to make a wrapper for a binary which executes it using hostPlatform.emulator?

Yes

https://github.com/NixOS/nixpkgs/blob/fcd099251655af6f7c935df9baf72b5963f33e86/pkgs/tools/admin/winbox/default.nix#L50 (here src is a exe)

https://github.com/search?q=repo%3ANixOS%2Fnixpkgs+%2FmakeWrapper.%2Bjre%2F&type=code

01:11:47
@axman6:matrix.orgAxman6 right - so you'd use something makeWrapper ${hostPlatform.emulator buildPackages} --args ${package}/bin/foo? 01:21:41
@artturin:matrix.orgArtturin You're forgetting the destination path, and it's --add-flags 01:28:37
@axman6:matrix.orgAxman6uh, yep - I should've just copied and pasted what I wrote in my derivation =)03:55:04
@fzakaria:one.ems.hostfzakaria joined the room.05:01:17
@fzakaria:one.ems.hostfzakaria 👋
is there a stdenv for musl without using pkgsMusl ?
05:01:34
@rosscomputerguy:matrix.orgTristan Ross No 05:11:42
@rosscomputerguy:matrix.orgTristan RossBut I have plans for things of that nature05:11:50
@rosscomputerguy:matrix.orgTristan Ross It'll be some time but I'm working on decoupling things in a way that allows up to swap out toolchain related things more ad-hoc with {host,build,target}Platform. 05:12:38
@fzakaria:one.ems.hostfzakariaoh thtat's cool; I have some really bad Nix code trying to build some stuff very specifically in musl19:16:06

Show newer messages


Back to Room ListRoom Version: 6