| 19 Aug 2025 |
QuadRadical (Ping) | in my build i just have these | 01:11:40 |
QuadRadical (Ping) |  Download Screenshot From 2025-08-18 21-11-26.png | 01:11:40 |
QuadRadical (Ping) | i think the .cargo here has your stuff | 01:12:02 |
QuadRadical (Ping) | yeah | 01:12:07 |
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 |