!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

550 Members
117 Servers

Load older messages


SenderMessageTime
25 Oct 2025
@emilazy:matrix.orgemily it's a bit awkward that makeScopeWithSplicing' passes self rather than spliced to the function 15:38:46
@emilazy:matrix.orgemily like the pkgs/__splicedPackages thing 15:38:52
@emilazy:matrix.orgemily is the idea to just always use callPackage for every single definition? but that's awkward in its own way, because of the effects on .override of course 15:39:09
@emilazy:matrix.orgemily can we just… make it pass spliced? I'm not seeing how that would cause problems 15:39:49
26 Oct 2025
@thedb:matrix.orgthedb joined the room.10:23:30
27 Oct 2025
@llamato:matrix.orgLlamato joined the room.20:08:25
28 Oct 2025
@llamato:matrix.orgLlamatoHi guys. I am working on getting a nix os desktop enviroment running on the Banana Pi M1. (armv7l). So far I managed to get the labwc wayland compositor running but am now struggling to get any browser to compile. Looks like onnxruntime keeps firefox from compiling. Shitboken6 keeps falkon from compiling and libparserutils keeps netsurf from compiling saying it can not find the CC command oddly enough. Any ideas on what I can do here?07:12:19
@symphorien:xlumurb.eusymphorienfwiw last version of upstream Firefox dropped support for 32 bit07:14:27
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)You could maybe try servo... Things not finding cc does happen occasionally, should be fixable07:18:25
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)Qt cross for falkon, well good luck07:18:41
@anders:sorby.xyzAnders

Reposting here:
I am working on readding support for relibc and redoxos to nixpkgs. That requires adding support for the relibc library which is a replacement for libc compatible with redox.
https://github.com/NixOS/nixpkgs/pull/453786

But I run into an infinite recusion problem when I try nix-shell -A pkgsCross.x86_64-unknown-redox.mkShell.


       … while evaluating the attribute 'stdenv.cc.targetPrefix'
         at /home/anderscs/src/nixpkgs/pkgs/stdenv/generic/default.nix:209:15:
          208|
          209|       inherit cc hasCC;
             |               ^
          210|

       … while evaluating 'targetPackages.stdenv.cc' to select 'targetPrefix' on it
         at /home/anderscs/src/nixpkgs/pkgs/development/compilers/rust/rustc.nix:55:14:
           54| stdenv.mkDerivation (finalAttrs: {
           55|   pname = "${targetPackages.stdenv.cc.targetPrefix}rustc";
             |              ^
           56|   inherit version;

       error: infinite recursion encountered
       at /home/anderscs/src/nixpkgs/pkgs/development/compilers/rust/rustc.nix:55:14:
           54| stdenv.mkDerivation (finalAttrs: {
           55|   pname = "${targetPackages.stdenv.cc.targetPrefix}rustc";
             |              ^

It is a circular dependency which should be solvable.

How do I best solve this?

07:39:44
@llamato:matrix.orgLlamato Thank you for the quick response.

Regarding CC not being found. How could that be fixed?

Regarding Servo. I tried it but that seems to have issues with the rust bindings. Saying it can not find bindgen.
08:05:11
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)

How could that be fixed?

either patching the makefiles to find the correct CC, or exporting some environment variable shenanigans.
I suspect this may be an issue too: https://github.com/NixOS/nixpkgs/blob/6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce/pkgs/by-name/li/libparserutils/package.nix#L21
Build system should probably be in native inputs.

08:25:34
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)but this is messy, i didn't see netsurf used a dedicated package for build system abstraction, makes this super ugly08:26:10
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all) *

How could that be fixed?

either patching the makefiles to find the correct CC, or exporting some environment variable shenanigans.
I suspect this may be an issue too: https://github.com/NixOS/nixpkgs/blob/6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce/pkgs/by-name/li/libparserutils/package.nix#L21
Build system should probably be in native inputs, not sure.

08:26:32
@llamato:matrix.orgLlamatoOk so good news. After spending way to much time on this I got dillo to compile and x11 to run. The issue is my mouse does not work in x11 and ideally I would like to use the labwc compositor under wayland, that I also got to run. The mouse works there so that is good. However the one thing I could not get running in the chain is xwayland.15:37:12
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)
In reply to @llamato:matrix.org
Ok so good news. After spending way to much time on this I got dillo to compile and x11 to run. The issue is my mouse does not work in x11 and ideally I would like to use the labwc compositor under wayland, that I also got to run. The mouse works there so that is good. However the one thing I could not get running in the chain is xwayland.
Does xwayland not run or not build?
17:34:57
@llamato:matrix.orgLlamato It does not build 17:39:14
29 Oct 2025
@insipx:matrix.orginsipxHey all! What’s the state of building swift libraries with nix on Darwin, does it work with the nix Xcode sdk?01:06:47
@insipx:matrix.orginsipx* Hey all! What’s the state of building swift libraries with nix on Darwin, does it work with the xcode sdk in nixpkgs?01:41:13
@reckenrode:matrix.orgRandy EckenrodeSwift 5.10.1 is packaged. It works with the SDK in nixpkgs. If the question is about cross-compilation, cross to Darwin from Linux is not currently supported.03:13:53
@reckenrode:matrix.orgRandy EckenrodeThere are some rough edges, but it’s gotten better. I plan to update it to 6.2 (or 6.3) for 26.05. That will introduce a new Swift expression that should be easier to maintain and work better.03:15:31
@insipx:matrix.orginsipxCross from Linux would be amazing ofc, but good to hear that 5.10 is packaged !05:22:00
@bennofs:matrix.orgBenno Fünfstück joined the room.13:19:30
31 Oct 2025
@creepinson:matrix.orgTheo Paris joined the room.01:55:13
2 Nov 2025
@backtail:matrix.orgbacktail joined the room.13:14:37
4 Nov 2025
@letgamer:tchncs.deAlex Stephan joined the room.20:04:58
5 Nov 2025
@abbhey:matrix.orgp2p joined the room.11:06:53
@bake.monorail:matrix.orgbake.monorailhi everyone, I just create my first PR to improve a bit uclibc-ng. feedback appreciated: https://github.com/NixOS/nixpkgs/pull/45893521:01:48
6 Nov 2025
@bake.monorail:matrix.orgbake.monorail* hi everyone, I just created my first PR to improve a bit uclibc-ng. feedback appreciated: https://github.com/NixOS/nixpkgs/pull/45893504:34:00

Show newer messages


Back to Room ListRoom Version: 6