3
0
Fork 0
forked from mirrors/nixpkgs

postfix: fix build w/glibc-2.34

Failing Hydra build: https://hydra.nixos.org/build/154082134
This commit is contained in:
Maximilian Bosch 2021-09-30 19:23:43 +02:00
parent 48d7135742
commit 1470227ef4
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -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) ''