libspf2: fix build w/glibc-2.34

Failing Hydra build: https://hydra.nixos.org/build/156229214
This commit is contained in:
Maximilian Bosch 2021-10-31 14:33:13 +01:00
parent 89caa8e552
commit fe58c181d3
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, fetchpatch }:
with lib;
@ -13,6 +13,14 @@ stdenv.mkDerivation rec {
sha256 = "03iiaafdcwh220pqignk407h6klrakwz0zkb8iwk6nkwipkwvhsx";
};
patches = [
# glibc-2.34 compat
(fetchpatch {
url = "https://raw.githubusercontent.com/gentoo/gentoo/dbb8a5c9f749cc11e61cfe558f164b165cbc30cb/mail-filter/libspf2/files/libspf2-1.2.11-undefined-dn_.patch";
sha256 = "sha256-6JVVkVGCcFJsNeBdVTPcLhW4KoHLY4ai/KXDMliXgPA=";
})
];
postPatch = ''
# disable static bins compilation
sed -i \