!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
126 Servers

Load older messages


SenderMessageTime
16 Feb 2026
@mon:tchncs.depneumatic changed their profile picture.15:18:32
18 Feb 2026
@leonard:menzel.lolLeonard-Orlando Menzelhas someone successfully crosscompiled gnome passes? it fails at build, but if i change the python in native buildinputs to ' (buildPackages.python3.withPackages (pp: [ pp.pygobject3 ]))' (adding the buildPackages prefix) it successuflly compiles, but i cant execute the resulting binary11:34:53
@artturin:matrix.orgArtturinWhat's the package name, I don't see a package called gnome-passes11:59:45
@artturin:matrix.orgArtturin .withPackages discards splicing so you have to python3.pythonOnBuildForHost or buildPackages.python3 12:01:02
@leonard:menzel.lolLeonard-Orlando Menzel the package name is just passes 12:09:15
@artturin:matrix.orgArtturinDoesn't look related to gnome :P12:11:04
@artturin:matrix.orgArtturinWhy does it not launch12:11:09
@artturin:matrix.orgArtturinCan't cross on my laptop atm12:11:14
@artturin:matrix.orgArtturinWrong python in some place I assume12:13:05
@artturin:matrix.orgArtturinShebang? add python3 to buildInpus and patchShebang --host the file in bin12:13:34
@artturin:matrix.orgArtturin * Shebang? add python3 to buildInputs and patchShebang --host the file in bin 12:13:53
@leonard:menzel.lolLeonard-Orlando Menzeli now looked at .passes-wrapped the shebang indeed is the x86_64 (builder not host) version of python12:14:50
@leonard:menzel.lolLeonard-Orlando Menzelwill try that12:14:59
@leonard:menzel.lolLeonard-Orlando MenzelpatchShebangs didnt work (i guess because the shebang allready is a store path) but replacing it with sed did the trick. opened a merge request https://github.com/NixOS/nixpkgs/pull/49175913:19:33
@artturin:matrix.orgArtturinpatchShebangs has --update13:20:47
@artturin:matrix.orgArtturinI forgot 13:20:55
@artturin:matrix.orgArtturin* I forgot to mention it https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/patch-shebangs.sh13:21:20
@artturin:matrix.orgArtturinBut yours is fine too13:24:35
@artturin:matrix.orgArtturin for patchShebangs you need to add the (python3.withPackages (pp: [ pp.pygobject3 ])) to buildInputs 13:25:01
@artturin:matrix.orgArtturinWhich you did 👍️13:25:42
@leonard:menzel.lolLeonard-Orlando Menzeltested again, still works :) thanks for helping13:35:24
19 Feb 2026
@nodtem66:matrix.orgnodtem66 joined the room.10:41:32
23 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".12:31:03
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".12:31:03
@grahamc:nixos.org@grahamc:nixos.org invited @qyliss:fairydust.spaceAlyssa Ross.12:31:18
@qyliss:fairydust.spaceAlyssa Ross joined the room.13:21:04
@symphorien:xlumurb.eusymphorien joined the room.13:29:22
@joe:monoid.aljoe joined the room.13:29:32
@cleverca22:matrix.orgcleverca22 joined the room.13:29:44
@andi:kack.itandi- joined the room.13:36:08

Show newer messages


Back to Room ListRoom Version: 6