@@ -54,6 +54,16 @@ stdenv.mkDerivation rec {
5454 configureFlagsArray+=("--with-sudo")
5555 '';
5656
57+ preBuild = ''
58+ # glibc-2.32 includes a full set of NSS stub module declarations
59+ # that conflict with the ones in sssd source. Define _NSS_H to
60+ # prevent them from breaking the compilation, but just for this
61+ # one file.
62+ cat >> Makefile <<EOF
63+ src/responder/nss/nss_cmd.\$(OBJEXT) : DEFS = -DHAVE_CONFIG_H -D_NSS_H
64+ EOF
65+ '';
66+
5767 enableParallelBuilding = true;
5868 buildInputs = [ augeas dnsutils c-ares curl cyrus_sasl ding-libs libnl libunistring nss
5969 samba nfs-utils doxygen python python3 popt