Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot be compiled in NixOS #693

Open
rinoforsure opened this issue Dec 28, 2024 · 2 comments
Open

Cannot be compiled in NixOS #693

rinoforsure opened this issue Dec 28, 2024 · 2 comments

Comments

@rinoforsure
Copy link

rinoforsure commented Dec 28, 2024

NixOS version: 24.11.711934.4005c3ff7505 (Vicuna)
error: linking with /nix/store/4apajimszc47rxwcpvc3g3rj2icinl71-gcc-wrapper-13.3.0/bin/cc failed: exit status: 1

kime error.log

@ToroidalFox
Copy link
Contributor

Same issue as #688.

@jhhuh
Copy link

jhhuh commented Jan 24, 2025

It looks like rustc-1.82.0 no longer respects LD_LIBRARY_PATH defined in build.sh.

LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PWD}/${TARGET_DIR}"

As a quick fix, you can use

pkgs.kime.overrideAttrs { RUSTFLAGS="-Clink-args=-L./target/release"; });

Or directly to your Nixos configuration as
https://github.com/jhhuh/dot/blob/4eea9c198c599d82fa5da049cc80cab8d462b992/machines/p1gen3/configuration.nix#L24)

Unfortunately, I'm not familiar enough with Rust's build system. I think the maintainers (@Riey) can and will eventually come up with a proper fix for build.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants