mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
37517db1de
`nokogiri` defines a C function called `canonicalize` which conflicts
with another function defined in glibc. Upstream has fixed this
issue [1], but in a much newer version. And because the affected
file has changed since the merged patch [2], it isn't directly
applicable to the old gem version `mpdcron` depends on.
[1]: https://github.com/sparklemotion/nokogiri/issues/2105
[2]: 7a74cdbe45
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{
|
|
mini_portile2 = {
|
|
groups = ["default"];
|
|
platforms = [];
|
|
source = {
|
|
remotes = ["https://rubygems.org"];
|
|
sha256 = "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy";
|
|
type = "gem";
|
|
};
|
|
version = "2.4.0";
|
|
};
|
|
nokogiri = {
|
|
dependencies = ["mini_portile2"];
|
|
groups = ["default"];
|
|
platforms = [];
|
|
source = {
|
|
remotes = ["https://rubygems.org"];
|
|
sha256 = "02bjydih0j515szfv9mls195cvpyidh6ixm7dwbl3s2sbaxxk5s4";
|
|
type = "gem";
|
|
};
|
|
|
|
dontBuild = false;
|
|
patches = [
|
|
# Fixes a naming conflict of nokogiri's `canonicalize` function
|
|
# with one defined in glibc. This has been fixed upstream in 2020
|
|
# in a much newer version (1.15.5), but through the divergence
|
|
# of the affected file, the commit isn't directly applicable to
|
|
# the one packaged here:
|
|
#
|
|
# https://github.com/sparklemotion/nokogiri/pull/2106/commits/7a74cdbe4538e964023e5a0fdca58d8af708b91e
|
|
# https://github.com/sparklemotion/nokogiri/issues/2105
|
|
./fix-canonicalize-conflict-with-glibc.patch
|
|
];
|
|
version = "1.10.3";
|
|
};
|
|
}
|