!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
126 Servers

Load older messages


SenderMessageTime
18 Feb 2026
@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
@jonhermansen:matrix.org@jonhermansen:matrix.org left the room.18:27:51
21 Feb 2026
@h7x4:nani.wtfh7x4 changed their profile picture.19:25:59
@h7x4:nani.wtfh7x4 changed their profile picture.19:30:16
@h7x4:nani.wtfh7x4 changed their profile picture.19:33:40
22 Feb 2026
@oakenpearl15:matrix.orgOaken joined the room.02:54:21
@slushee:crabsin.spaceSlushee changed their profile picture.20:30:27
@slushee:crabsin.spaceSlushee changed their profile picture.23:03:42
23 Feb 2026
@theo-paris:matrix.orgTheo Paris

Not sure if this is the right place for this but:
I was testing github.com/NixOS/nixpkgs/pull/463361 with a nixos config flake using

  nixpkgs.localSystem = {
    system = "x86_64-linux";
    useLLVM = true;
    linker = "lld";
  };

And I ran into the following error:


       … while evaluating the option `home-manager.users.theo.i18n.glibcLocales':

       … while evaluating the option `i18n.glibcLocales':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: function 'anonymous lambda' called with unexpected argument 'nativeBuildInputs'
       at /nix/store/hq30166l4qc2l2va8v4lj9fyg894wdqs-source/pkgs/build-support/fetchurl/boot.nix:10:1:
            9|
           10| {
             | ^
           11|   url ? builtins.head urls,
00:58:11
@theo-paris:matrix.orgTheo ParisIt seems like it should work with crossSystem but that adds gcc's bootstrap to the mix as well as llvm00:58:45
@theo-paris:matrix.orgTheo Paris* It seems like it should work with crossSystem but that adds gcc's bootstrap to the mix as well as llvm - I just wanted to have a "(mostly) pure llvm" system.00:59:16
@theo-paris:matrix.orgTheo Paris* It seems like it should work with crossSystem but that adds the host gcc bootstrap to the mix as well as llvm - I just wanted to have a "(mostly) pure llvm" system.00:59:32
@theo-paris:matrix.orgTheo ParisI'm not even sure where to start to attempt to fix this issue... I could try adding nativeBuildInputs or removeAttrs but I'm not sure if those are the right solutions01:00:37
@artturin:matrix.orgArtturin
In reply to @theo-paris:matrix.org

Not sure if this is the right place for this but:
I was testing github.com/NixOS/nixpkgs/pull/463361 with a nixos config flake using

  nixpkgs.localSystem = {
    system = "x86_64-linux";
    useLLVM = true;
    linker = "lld";
  };

And I ran into the following error:


       … while evaluating the option `home-manager.users.theo.i18n.glibcLocales':

       … while evaluating the option `i18n.glibcLocales':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: function 'anonymous lambda' called with unexpected argument 'nativeBuildInputs'
       at /nix/store/hq30166l4qc2l2va8v4lj9fyg894wdqs-source/pkgs/build-support/fetchurl/boot.nix:10:1:
            9|
           10| {
             | ^
           11|   url ? builtins.head urls,

That's a common symptom of bootstrap issues
The bootstrap fetchurl is used in a place where the full fetchurl should be used.
It's not an issue in fetchurl itself

https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/boot.nix

01:34:32

Show newer messages


Back to Room ListRoom Version: 6