1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

postgresql_*: upstream patches to support libxml2-2.13

/cc PR #326637
This commit is contained in:
Vladimír Čunát 2024-07-21 08:42:56 +02:00
parent 6ff8a10a87
commit 3f0fd423e3
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -2,7 +2,7 @@ let
generic =
# dependencies
{ stdenv, lib, fetchurl, makeWrapper
{ stdenv, lib, fetchurl, fetchpatch, makeWrapper
, glibc, zlib, readline, openssl, icu, lz4, zstd, systemd, libossp_uuid
, pkg-config, libxml2, tzdata, libkrb5, substituteAll, darwin
, linux-pam
@ -120,6 +120,22 @@ let
locale = "${if stdenv.isDarwin then darwin.adv_cmds else lib.getBin stdenv.cc.libc}/bin/locale";
})
(
if atLeast "16" then
fetchpatch {
name = "libxml2-2.13-compat.patch";
# This one is for 16 branch upstream.
url = "https://github.com/postgres/postgres/commit/f85c91a1867b45742bb28e4578ca2b4a0976383f.diff";
hash = "sha256-4YcXfo98uVuCu+ybVw3bM4x8Y0I1xfjdjBZOlhyF21w=";
}
else
fetchpatch {
name = "libxml2-2.13-compat.patch";
# This one is for 15 branch upstream, but it also applies well to all our older branches.
url = "https://github.com/postgres/postgres/commit/f68d6aabb7e2c803818185b49a3d356bdb2b2974.diff";
hash = "sha256-Nelb0mbjx0Xq9UJuVv7cs3ifCtUPP7UZraPMPGb2wyQ=";
}
)
] ++ lib.optionals stdenv'.hostPlatform.isMusl (
# Using fetchurl instead of fetchpatch on purpose: https://github.com/NixOS/nixpkgs/issues/240141
map fetchurl (lib.attrValues muslPatches)