Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nix): use nix gcc and provide libiconv (#916)
* fix(nix): use nix gcc and provide libiconv Fixes iconv problems on darwin when using nix's gcc by removing an impurity from build. Adding this is apparently a no-op for linux, because libiconv is included by default in libc for linux. This allows us to omit conditionals. Before: ```sh ❯ otool -L libblink_cmp_fuzzy.dylib libblink_cmp_fuzzy.dylib: /Users/konrad/Code/github.com/konradmalik/blink.cmp/target/release/deps/libblink_cmp_fuzzy.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1351.0.0) ``` After: ```sh ❯ otool -L ./target/release/libblink_cmp_fuzzy.dylib ./target/release/libblink_cmp_fuzzy.dylib: /Users/konrad/Code/github.com/konradmalik/blink.cmp/target/release/deps/libblink_cmp_fuzzy.dylib (compatibility version 0.0.0, current version 0.0.0) /nix/store/v7ldx1ra3wrjaasap8bfradapkqi2w1r-libiconv-107/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0) ``` * ci(nix): check, build, run, even on prs Also adds nix-comminity cache to avoid builds from fenix.
- Loading branch information