about summary refs log tree commit diff
path: root/pkgs/servers/mail/postfix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2021-09-30 19:23:43 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2022-02-27 10:25:38 +0100
commit1470227ef41c4b101c77f3f1969d3978678215df (patch)
treee0255050534b71693a760f78949736800b8b1281 /pkgs/servers/mail/postfix
parent48d713574293092544bd7deae2cef1e789f478e1 (diff)
postfix: fix build w/glibc-2.34
Failing Hydra build: https://hydra.nixos.org/build/154082134
Diffstat (limited to 'pkgs/servers/mail/postfix')
-rw-r--r--pkgs/servers/mail/postfix/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix
index 08c55f771724d..942023b4eaf43 100644
--- a/pkgs/servers/mail/postfix/default.nix
+++ b/pkgs/servers/mail/postfix/default.nix
@@ -1,5 +1,6 @@
 { stdenv, lib, fetchurl, makeWrapper, gnused, db, openssl, cyrus_sasl, libnsl
 , coreutils, findutils, gnugrep, gawk, icu, pcre, m4
+, fetchpatch
 , buildPackages, nixosTests
 , withLDAP ? true, openldap
 , withPgSQL ? false, postgresql
@@ -46,6 +47,12 @@ in stdenv.mkDerivation rec {
     ./postfix-3.0-no-warnings.patch
     ./post-install-script.patch
     ./relative-symlinks.patch
+
+    # glibc 2.34 compat
+    (fetchpatch {
+      url = "https://src.fedoraproject.org/rpms/postfix/raw/2f9d42453e67ebc43f786d98262a249037f80a77/f/postfix-3.6.2-glibc-234-build-fix.patch";
+      sha256 = "sha256-xRUL5gaoIt6HagGlhsGwvwrAfYvzMgydsltYMWvl9BI=";
+    })
   ];
 
   postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''