| 18 Aug 2025 |
QuadRadical (Ping) | but the substitute seemed to work:
postPatch = lib.optionalString (super.stdenv.buildPlatform != super.stdenv.hostPlatform) ''
substituteInPlace loaders/meson.build \
--replace-fail "cargo_target_dir / rust_target / loader," "cargo_target_dir / '${super.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / loader,"
'';
| 20:25:56 |
Artturin | In reply to @quadradical:federated.nexus but the substitute seemed to work:
postPatch = lib.optionalString (super.stdenv.buildPlatform != super.stdenv.hostPlatform) ''
substituteInPlace loaders/meson.build \
--replace-fail "cargo_target_dir / rust_target / loader," "cargo_target_dir / '${super.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / loader,"
'';
The error isn't related to that | 20:28:13 |
Artturin | Did you add the env var | 20:28:27 |
QuadRadical (Ping) | Yeah I did, I have this overlay:
glycin-loaders = super.glycin-loaders.overrideAttrs (old: {
postPatch = lib.optionalString (super.stdenv.buildPlatform != super.stdenv.hostPlatform) ''
substituteInPlace loaders/meson.build \
--replace-fail "cargo_target_dir / rust_target / loader," "cargo_target_dir / '${super.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / loader,"
'';
env.CARGO_BUILD_TARGET = super.stdenv.hostPlatform.rust.rustcTargetSpec;
});
| 20:28:48 |
QuadRadical (Ping) | Redacted or Malformed Event | 20:32:19 |
QuadRadical (Ping) | Redacted or Malformed Event | 20:32:34 |
Artturin | In reply to @quadradical:federated.nexus sent an image. What's in build/cargo-home | 20:45:24 |
QuadRadical (Ping) | .global-cache .package-cache .package-cache-mutate | 20:46:26 |
Artturin | Try
cp -R /build/.cargo $sourceRoot/ | 20:54:07 |
QuadRadical (Ping) | in postPatch? | 20:54:52 |
Artturin | Yeah | 20:55:24 |
QuadRadical (Ping) | no difference | 20:55:32 |
QuadRadical (Ping) | wait no | 20:55:47 |
QuadRadical (Ping) | i put it in the wrong overlay | 20:55:51 |
QuadRadical (Ping) | 1 sec | 20:55:52 |
QuadRadical (Ping) | cp: cannot stat '/build/.cargo': No such file or directory | 20:56:35 |
QuadRadical (Ping) | should it be build/cargo-home instead? | 20:57:20 |
Artturin | Ahh | 20:58:32 |
Artturin | glycin-loaders doesn't have the cargoSetupHook | 20:58:50 |
Artturin | That's the issur | 20:58:53 |
Artturin | Just add it like in the other package | 20:59:05 |
Artturin | And the copy isn't needed | 20:59:10 |
QuadRadical (Ping) | ohh ok thanks! | 20:59:32 |
Artturin | It's what adds the cargo config necessary necessary cross | 20:59:58 |
Artturin | * It's what adds the cargo config filr necessary for cross | 21:00:41 |
Artturin | * It's what adds the cargo config file necessary for cross | 21:00:57 |
QuadRadical (Ping) | hmm it fails | 21:02:55 |
QuadRadical (Ping) | error: builder for '/nix/store/ij147jszwkrf2ad1klcql0qrvadq2zys-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv' failed with exit code 1;
last 6 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/ics3xr1jgfmagn18jax3h5nva7g5smys-glycin-1.2.3.tar.xz
> source root is glycin-1.2.3
> Executing cargoSetupPostUnpackHook
> unpacking source archive
> do not know how to unpack source archive
For full logs, run 'nix log /nix/store/ij147jszwkrf2ad1klcql0qrvadq2zys-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv'.
| 21:02:58 |
QuadRadical (Ping) | does it not like tar xz? | 21:06:56 |
Artturin | In reply to @quadradical:federated.nexus
error: builder for '/nix/store/ij147jszwkrf2ad1klcql0qrvadq2zys-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv' failed with exit code 1;
last 6 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/ics3xr1jgfmagn18jax3h5nva7g5smys-glycin-1.2.3.tar.xz
> source root is glycin-1.2.3
> Executing cargoSetupPostUnpackHook
> unpacking source archive
> do not know how to unpack source archive
For full logs, run 'nix log /nix/store/ij147jszwkrf2ad1klcql0qrvadq2zys-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv'.
cargoSetupHooks needs a cargoDeps attribute | 21:09:21 |