kime icon indicating copy to clipboard operation
kime copied to clipboard

Cannot be compiled in NixOS

Open rinoforsure opened this issue 11 months ago • 3 comments

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

rinoforsure avatar Dec 28 '24 05:12 rinoforsure

Same issue as #688.

ToroidalFox avatar Jan 04 '25 10:01 ToroidalFox

It looks like rustc-1.82.0 no longer respects LD_LIBRARY_PATH defined in build.sh. https://github.com/Riey/kime/blob/c5e007c4ddaef0b176ba0d4198e1654b7e1dcabd/scripts/build.sh#L93

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.

jhhuh avatar Jan 24 '25 09:01 jhhuh

resolved by https://github.com/NixOS/nixpkgs/pull/386911

honnip avatar Mar 06 '25 04:03 honnip