| 19 Aug 2025 |
Artturin | Thats /build/.cargo | 01:12:19 |
QuadRadical (Ping) | oh is nix-build-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv-26 the same as /build | 01:12:46 |
Artturin | /build/.cargo is a full path in the sandbox | 01:12:57 |
Artturin | So I'm talking about sandbox paths | 01:13:03 |
Artturin | so yeah | 01:13:19 |
QuadRadical (Ping) | oh sorry | 01:13:22 |
QuadRadical (Ping) | then yes, i think i have the same | 01:13:33 |
QuadRadical (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 (Ping) | a bit different actually? | 01:13:51 |
Artturin | 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 (Ping) | you have an x86_64 thing in there | 01:14:09 |
QuadRadical (Ping) | i dont | 01:14:13 |
QuadRadical (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 (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 (Ping) | you have an x86 target in here but not me hmm | 01:14:57 |
Artturin | try super.rustPlatform.cargoSetupHook | 01:16:43 |
Artturin | * try super.buildPackages.rustPlatform.cargoSetupHook | 01:17:06 |
QuadRadical (Ping) | wait its compiling | 01:17:51 |
QuadRadical (Ping) | i think its working! | 01:17:53 |
QuadRadical (Ping) | interesting i wonder why the other one didnt work? | 01:18:04 |
Artturin | Splicing stuff, the best practice is to
glycin-loaders = super.callPackage ({ rustPlatform, andso-on }: super.glycin-loaders.overrideAttrs (old: {
...
}) { };
| 01:22:00 |
Artturin | is to use callPackage even in overlays and overrideAttrs | 01:22:25 |
QuadRadical (Ping) | interesting | 01:22:42 |
QuadRadical (Ping) | well this has worked anywyas | 01:22:45 |
QuadRadical (Ping) | thank you!! | 01:22:47 |
Artturin | * 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 (Ping) | okay next error | 01:25:28 |
QuadRadical (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 (Ping) | hmm | 01:28:32 |
Artturin | It's probably something like it's looking wayland-scanner with the cross prefixed pkg-config instead of with the for-build pkg-config | 01:28:54 |