!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

569 Members
124 Servers

Load older messages


SenderMessageTime
19 Aug 2025
@artturin:matrix.orgArtturinThats /build/.cargo01:12:19
@quadradical:federated.nexusQuadRadical (Ping) oh is nix-build-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv-26 the same as /build 01:12:46
@artturin:matrix.orgArtturin /build/.cargo is a full path in the sandbox 01:12:57
@artturin:matrix.orgArtturinSo I'm talking about sandbox paths01:13:03
@artturin:matrix.orgArtturinso yeah01:13:19
@quadradical:federated.nexusQuadRadical (Ping)oh sorry01:13:22
@quadradical:federated.nexusQuadRadical (Ping)then yes, i think i have the same01:13:33
@quadradical:federated.nexusQuadRadical (Ping)
[source."crates-io"]
"replace-with" = "vendored-sources"

[source."vendored-sources"]
"directory" = "/build/glycin-1.2.3/vendor"


    [target."aarch64-unknown-linux-gnu"]
"linker" = "/nix/store/73kvxgyddj06nlvkd3wsl6vq2jr2dm1m-aarch64-unknown-linux-gnu-gcc-wrapper-14.3.0/bin/aarch64-unknown-linux-gnu-cc"
"rustflags" = [ "-Cforce-frame-pointers=yes" ]
01:13:42
@quadradical:federated.nexusQuadRadical (Ping)a bit different actually?01:13:51
@artturin:matrix.orgArtturin For me the path is /comp-temp/nix-build-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv-5/build/.cargo tho 01:13:58
@quadradical:federated.nexusQuadRadical (Ping)you have an x86_64 thing in there01:14:09
@quadradical:federated.nexusQuadRadical (Ping)i dont01:14:13
@quadradical:federated.nexusQuadRadical (Ping) for me it is /nix/var/nix/builds/nix-build-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv-26/.cargo 01:14:30
@quadradical:federated.nexusQuadRadical (Ping) for me it is /nix/var/nix/builds/nix-build-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv-26/.cargo 01:14:35
@quadradical:federated.nexusQuadRadical (Ping) you have an x86 target in here but not me hmm 01:14:57
@artturin:matrix.orgArtturin try super.rustPlatform.cargoSetupHook 01:16:43
@artturin:matrix.orgArtturin * try super.buildPackages.rustPlatform.cargoSetupHook 01:17:06
@quadradical:federated.nexusQuadRadical (Ping)wait its compiling01:17:51
@quadradical:federated.nexusQuadRadical (Ping)i think its working!01:17:53
@quadradical:federated.nexusQuadRadical (Ping)interesting i wonder why the other one didnt work?01:18:04
@artturin:matrix.orgArtturin

Splicing stuff, the best practice is to

glycin-loaders = super.callPackage ({ rustPlatform, andso-on }: super.glycin-loaders.overrideAttrs (old: {
...
}) { };
01:22:00
@artturin:matrix.orgArtturinis to use callPackage even in overlays and overrideAttrs01:22:25
@quadradical:federated.nexusQuadRadical (Ping)interesting01:22:42
@quadradical:federated.nexusQuadRadical (Ping)well this has worked anywyas01:22:45
@quadradical:federated.nexusQuadRadical (Ping)thank you!!01:22:47
@artturin:matrix.orgArtturin * is to use callPackage even in overlays and overrideAttrs so you get cargoSetupHook with __spliced which nativeBuildInputs and other dependency attrs can then utilize to pick the right hostPlatform and targetPlatform package 01:23:33
@quadradical:federated.nexusQuadRadical (Ping)okay next error01:25:28
@quadradical:federated.nexusQuadRadical (Ping)
error: builder for '/nix/store/70nr8i781jqrj5ykmsqszj2sj7x7mw70-ibus-aarch64-unknown-linux-gnu-1.5.32.drv' failed with exit code 1;
       last 25 log lines:
       >     ... yes
       > checking for
       >         gtk4
       >     ... yes
       > checking for
       >         x11
       >     ... yes
       > checking for X11/XKBlib.h... yes
       > Skipping X11 locale directory check when cross compiling. Using: /nix/store/pj5bi4ak8bs593ckr80kqlxhxarcf3ak-libX11-aarch64-unknown-linux-gnu-1.8.12/share/X11/locale
       > checking for
       >         wayland-client >= 1.2.0
       >         xkbcommon
       >     ... yes
       > checking pkg-config is at least version 0.9.0... yes
       > checking for wayland-scanner >= 1.14.0... no
       > configure: error: Package requirements (wayland-scanner >= 1.14.0) were not met:
       >
       > No package 'wayland-scanner' found
       >
       > Consider adjusting the PKG_CONFIG_PATH environment variable if you
       > installed software in a non-standard prefix.
       >
       > Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
       > and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
       > See the pkg-config man page for more details.
       For full logs, run 'nix log /nix/store/70nr8i781jqrj5ykmsqszj2sj7x7mw70-ibus-aarch64-unknown-linux-gnu-1.5.32.drv'.
error: 1 dependencies of derivation '/nix/store/nqn483f4v0vwi5ixcx0mxypgnw1kz9pg-gnome-control-center-aarch64-unknown-linux-gnu-48.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6i011ns18fkpk07phkvyydqfk6l6rkrp-gnome-shell-aarch64-unknown-linux-gnu-48.mobile.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3ls463qmb86f4bjxz5bvi6a5m4vcvjll-ibus-with-plugins-1.5.32.drv' failed to build
error: 1 dependencies of derivation '/nix/store/48x0apcrn6i56wzpb3b0yjq7zrlzq77r-autostart-ibus-daemon.drv' failed to build
error: 1 dependencies of derivation '/nix/store/17g3wbl339r451r11jmk570pphy55bk4-dbus-1.drv' failed to build
01:25:30
@quadradical:federated.nexusQuadRadical (Ping)hmm01:28:32
@artturin:matrix.orgArtturinIt's probably something like it's looking wayland-scanner with the cross prefixed pkg-config instead of with the for-build pkg-config01:28:54

Show newer messages


Back to Room ListRoom Version: 6