mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 09:44:18 +00:00
rubyPackages.iconv: fix build on Darwin
Darwin’s libiconv has separate outputs for the dylib and headers, so it needs to use `lib.getLib` and `lib.getDev`.
This commit is contained in:
parent
e1d14f12b1
commit
2536713f70
@ -467,7 +467,10 @@ in
|
||||
|
||||
iconv = attrs: {
|
||||
dontBuild = false;
|
||||
buildFlags = lib.optional stdenv.isDarwin "--with-iconv-dir=${libiconv}";
|
||||
buildFlags = lib.optionals stdenv.isDarwin [
|
||||
"--with-iconv-dir=${lib.getLib libiconv}"
|
||||
"--with-iconv-include=${lib.getDev libiconv}/include"
|
||||
];
|
||||
patches = [
|
||||
# Fix incompatible function pointer conversion errors with clang 16
|
||||
./iconv-fix-incompatible-function-pointer-conversions.patch
|
||||
|
Loading…
Reference in New Issue
Block a user