mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
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:
parent
c8b2579f1f
commit
c3d54620fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user