!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

555 Members
119 Servers

Load older messages


SenderMessageTime
18 Aug 2025
@artturin:matrix.orgArtturin Build with --keep-failed and inspect the failed build in /tmp 20:02:06
@artturin:matrix.orgArtturin With for example ranger 20:02:14
@artturin:matrix.orgArtturin * With for example ranger cli file manager 20:02:18
@quadradical:federated.nexusQuadRadical (Ping) sorry, how do i build only that package with my overlay? 20:04:53
@quadradical:federated.nexusQuadRadical (Ping)ah i found a way20:07:06
@artturin:matrix.orgArtturin nixosConfigurations.<hostname>.pkgs.glycin-loaders might work 20:11:09
@quadradical:federated.nexusQuadRadical (Ping)its going thanks20:13:04
@quadradical:federated.nexusQuadRadical (Ping) i ran this nix build .#nixosConfigurations.quadphone.pkgs.glycin-loaders --keep-failed but after it failed i still dont see a result folder 20:13:49
@quadradical:federated.nexusQuadRadical (Ping)or do i not put it there20:14:12
@quadradical:federated.nexusQuadRadical (Ping) oh its /nix/var/nix/builds/nix-build-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv-4 20:18:30
@artturin:matrix.orgArtturinOh it's not /tmp anymore?20:20:18
@artturin:matrix.orgArtturinI have my nix tmpdir set to /comp-temp which is on ramfs sinve years ago so haven't checked the default20:21:06
@artturin:matrix.orgArtturin* I have my nix tmpdir set to /comp-temp which is on tmpfs for mamy years so haven't checked the default20:22:14
@quadradical:federated.nexusQuadRadical (Ping)hmm its the repo root but it doesnt have the loaders subdir20:22:15
@quadradical:federated.nexusQuadRadical (Ping)Screenshot From 2025-08-18 16-22-03.png
Download Screenshot From 2025-08-18 16-22-03.png
20:22:19
@quadradical:federated.nexusQuadRadical (Ping)oh its just loaders20:23:26
@quadradical:federated.nexusQuadRadical (Ping)not glycin-loaders20:23:29
@artturin:matrix.orgArtturin
In reply to @quadradical:federated.nexus
not glycin-loaders
Maybe it was renamed and it isn't in a release yet?
20:24:14
@artturin:matrix.orgArtturinhttps://gitlab.gnome.org/GNOME/glycin/-/commit/d5e49132defb3752b82943f13ab0c9aef2907c8420:24:48
@artturin:matrix.orgArtturinYup20:24:50
@artturin:matrix.orgArtturin2 weeks ago20:24:52
@quadradical:federated.nexusQuadRadical (Ping)ahhhh, oke20:25:27
@quadradical:federated.nexusQuadRadical (Ping)i still have this though20:25:39
@quadradical:federated.nexusQuadRadical (Ping)
error: builder for '/nix/store/9ymkhv5grky5wmk1n19icn82cl7v24ph-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv' failed with exit code 1;
       last 25 log lines:
       >    Compiling static_assertions v1.1.0
       >    Compiling rustix v0.38.44
       > error: linker `cc` not found
       >   |
       >   = note: No such file or directory (os error 2)
       >
       > error: could not compile `serde` (build script) due to 1 previous error
       > warning: build failed, waiting for other jobs to finish...
       > error: could not compile `crossbeam-utils` (build script) due to 1 previous error
       > error: could not compile `libc` (build script) due to 1 previous error
       > error: could not compile `proc-macro2` (build script) due to 1 previous error
       > error: could not compile `rustix` (build script) due to 1 previous error
       > [1/12] Merging translations for loaders/glycin-jxl.conf
       > /nix/store/m705ap2d06cz67bl8xssz33rl9axy3pm-gettext-0.25.1/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
       > [2/12] Merging translations for loaders/glycin-image-rs.conf
       > /nix/store/m705ap2d06cz67bl8xssz33rl9axy3pm-gettext-0.25.1/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
       > loaders/tmp-glycin-image-rs:27:0: warning: invalid non-blank line
       > loaders/tmp-glycin-image-rs:31:0: warning: invalid non-blank line
       > [3/12] Merging translations for loaders/glycin-svg.conf
       > /nix/store/m705ap2d06cz67bl8xssz33rl9axy3pm-gettext-0.25.1/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
       > [4/12] Merging translations for loaders/glycin-heif.conf
       > /nix/store/m705ap2d06cz67bl8xssz33rl9axy3pm-gettext-0.25.1/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
       > FAILED: loaders/glycin-heif-bin
       > env CARGO_HOME=/build/glycin-1.2.3/build/cargo-home LOCALEDIR=/nix/store/cckz6c52iwiwbirh05m3fa1sjlhzwi3f-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3/share/locale GIT_DESCRIBE= /nix/store/as0xa9521nz18lgw9a5q3r3x5r4b15pz-aarch64-unknown-linux-gnu-cargo-1.88.0/bin/cargo build --target-dir /build/glycin-1.2.3/build/cargo-target --profile release --manifest-path /build/glycin-1.2.3/Cargo.toml --package glycin-heif
       > ninja: build stopped: subcommand failed.
       For full logs, run 'nix log /nix/store/9ymkhv5grky5wmk1n19icn82cl7v24ph-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv'.
20:25:42
@quadradical:federated.nexusQuadRadical (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:matrix.orgArtturin
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:matrix.orgArtturinDid you add the env var20:28:27
@quadradical:federated.nexusQuadRadical (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:federated.nexusQuadRadical (Ping)Redacted or Malformed Event20:32:19
@quadradical:federated.nexusQuadRadical (Ping)Redacted or Malformed Event20:32:34

Show newer messages


Back to Room ListRoom Version: 6