I’m trying to create an overlay for the openldap package with the smbk5pwd
module. While building that I get an error about a missing krb5.h
file. It seems I need to add the heimdal package to the buildInputs
but that’s where I’m getting stuck. I tried the code below but I’m getting an infinite recursion error.
overlay-openldap = final: prev: {
# nixpkgs:/pkgs/development/libraries/openldap
openldap = prev.openldap.overrideAttrs (_: rec {
buildInputs = prev.openldap.buildInputs ++ [prev.heimdal];
extraContribModules = [
# https://git.openldap.org/openldap/openldap/-/tree/master/contrib/slapd-modules
"passwd/sha2"
"passwd/pbkdf2"
"passwd/totp"
"smbk5pwd"
];
});
};
How to add the heimdal package to the buildInputs
?