pkgsStatic.krb5: fix build (#348188)

This commit is contained in:
Peder Bergebakken Sundt 2024-10-19 07:12:57 +02:00 committed by GitHub
commit 3f3903a927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,10 @@ stdenv.mkDerivation rec {
# stdenv will take care of overriding bindir, sbindir, etc. such that "out" contains the binaries.
prefix = builtins.placeholder "lib";
env = lib.optionalAttrs stdenv.hostPlatform.isStatic {
NIX_CFLAGS_COMPILE = "-fcommon";
};
configureFlags = [
"--localstatedir=/var/lib"
(lib.withFeature withLdap "ldap")