rubyPackages_3_{2,3}.nokogiri: add libxml2 to darwin buildInputs; unbreak

fix build failure on darwin:

```
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
checking for libxml-2.0 using `pkg_config`... no
Please install either the `pkg-config` utility or the `pkg-config` rubygem.
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
-----
extconf.rb:295:in `ensure_package_configuration'
extconf.rb:704:in `<main>'
xml2 is missing. Please locate mkmf.log to investigate how it is failing.
```
This commit is contained in:
annalee 2024-05-13 11:11:15 +00:00
parent c8b2579f1f
commit c3d54620fd
No known key found for this signature in database

View File

@ -586,7 +586,7 @@ in
];
};
nokogiri = attrs: {
nokogiri = attrs: ({
buildFlags = [
"--use-system-libraries"
"--with-zlib-lib=${zlib.out}/lib"
@ -601,7 +601,9 @@ in
"--with-iconv-dir=${libiconv}"
"--with-opt-include=${libiconv}/include"
];
};
} // lib.optionalAttrs stdenv.isDarwin {
buildInputs = [ libxml2 ];
});
openssl = attrs: {
# https://github.com/ruby/openssl/issues/369