Skip to content

Commit

Permalink
rubyPackages.libxml-ruby: fix build on Darwin
Browse files Browse the repository at this point in the history
Darwin’s libiconv has separate outputs for the dylib and headers, so it needs to use `lib.getLib` and `lib.getDev`.
  • Loading branch information
reckenrode committed Jul 26, 2024
1 parent 2536713 commit 1aa9412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/ruby-modules/gem-config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ in
"--with-xml2-lib=${libxml2.out}/lib"
"--with-xml2-include=${libxml2.dev}/include/libxml2"
] ++ lib.optionals stdenv.isDarwin [
"--with-iconv-dir=${libiconv}"
"--with-opt-include=${libiconv}/include"
"--with-iconv-dir=${lib.getLib libiconv}"
"--with-opt-include=${lib.getDev libiconv}/include"
];
};

Expand Down

0 comments on commit 1aa9412

Please sign in to comment.