!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

531 Members
114 Servers

Load older messages


SenderMessageTime
3 Sep 2025
@winter:catgirl.cloudWinter is overriding the target's libc with crossOverlays expected to not do anything, instead needing to go through overlays? (i guess libc isn't used from targetPackages because [cc is grabbed from buildPackages](https://github.com/NixOS/nixpkgs/blob/c6a788f552b7b7af703b1a29802a7233c0067908/pkgs/stdenv/cross/default.nix#L106)?) 15:00:26
@winter:catgirl.cloudWinteris there a way i'm missing to modify the libc used by the target system without modifying the libc used by the builder's stdenv?15:02:42
@winter:catgirl.cloudWinter though i'd expect libc to be taken from targetPackages, it's not: doing e.g. glibc = throw "" in crossOverlays does not throw 15:04:10
@winter:catgirl.cloudWinteri think my dumb hackery is exacerbating my issues, disrgeard ^^15:11:51
@winter:catgirl.cloudWinter* i think my dumb hackery is exacerbating my issues, disregard ^^15:11:57
@ghpzin:envs.netghpzin joined the room.18:23:21
@stephen:crabsin.spacen3tcat changed their display name from Stephen D to n3tcat.19:43:26
@stephen:crabsin.spacen3tcat 19:43:26
@stephen:crabsin.spacen3tcat 19:43:56
@stephen:crabsin.spacen3tcat 19:43:56
@stephen:crabsin.spacen3tcat 19:44:06
@tmplt:matrix.orgViktor Vilhelm Sonesten joined the room.20:34:50
4 Sep 2025
@fliegendewurst:matrix.orgFliegendeWurst changed their display name from FliegendeWurst (@GPN23) to FliegendeWurst.08:34:26
6 Sep 2025
@ss:someonex.netSomeoneSerge (back on matrix) changed their display name from SomeoneSerge (Ever OOMed by Element) to SomeoneSerge (@nixcon & back on matrix).09:20:33
7 Sep 2025
@ggemre:matrix.orgnkl joined the room.15:48:05
8 Sep 2025
@inayet:matrix.orginayet set a profile picture.02:17:02
9 Sep 2025
@imurx:matrix.orgimurx changed their profile picture.02:24:59
@eliaselias:matrix.orgeliaselias joined the room.09:30:02
10 Sep 2025
@jolman:matrix.orgJolman joined the room.00:25:44
@ss:someonex.netSomeoneSerge (back on matrix) changed their display name from SomeoneSerge (@nixcon & back on matrix) to SomeoneSerge (back on matrix).00:34:27
@jawuku:matrix.orgJason Awuku joined the room.12:03:12
@frontear:matrix.orgfrontear

Is it possible to cross-compile mesa? I’ve got school projects that require writing OpenGL applications and they use Windows. I’d like to continue using Nix for the development shell and derivations, but I’d need to be able to cross-compile.

I gave the mesa derivation a cursory look and spotted that platforms.unix is the only one that’s defined. I was wondering if cross-compiling it had ever been attempted and whether it would be feasible to do so.

20:27:20
@artturin:matrix.orgArtturinCross compile yes Cross compile for windows, dunno20:27:48
@artturin:matrix.orgArtturinProbably not20:28:21
@artturin:matrix.orgArtturinPython3 is marked as broken for windows so20:29:35
@frontear:matrix.orgfrontearBummer, it’s a good thing I asked early then. Suppose I’ll have to cobble together a windows machine for this.20:30:15
@frontear:matrix.orgfrontearAt the least for testing if the package compiles and works, I suppose I could continue to program it in a Nix devshell.20:30:41
@frontear:matrix.orgfrontearThanks for the answer!20:30:54
@qyliss:fairydust.spaceAlyssa RossMesa depends on host Python 3??20:30:59
@k900:0upti.meK900 It makes no sense to cross Mesa to Windows anyway 20:31:16

Show newer messages


Back to Room ListRoom Version: 6