fix: broken sssd and freeipa packages

This commit is contained in:
arcnmx 2024-07-06 12:11:11 -07:00
parent a7e4b5d7fa
commit a7165edc42
2 changed files with 24 additions and 1 deletions

View file

@ -30,7 +30,8 @@ in {
]; ];
krb5.inputs = [ krb5.inputs = [
packages.x86_64-linux.krb5-ldap packages.x86_64-linux.krb5-ldap
legacyPackages.x86_64-linux.pkgs._389-ds-base legacyPackages.x86_64-linux.pkgs.sssd
legacyPackages.x86_64-linux.pkgs.freeipa
]; ];
openwebrx.inputs = [ openwebrx.inputs = [
packages.x86_64-linux.openwebrxplus packages.x86_64-linux.openwebrxplus

View file

@ -4,4 +4,26 @@ in {
krb5-ldap = final.krb5.override { krb5-ldap = final.krb5.override {
withLdap = true; withLdap = true;
}; };
sssd = let
inherit (prev) sssd;
sssd'py311 = sssd.override {
python3 = final.python311;
};
isBroken = !(builtins.tryEval sssd.outPath).success;
warnFixed = lib.warnIf (lib.versionAtLeast final.python3.version "3.12") "python-ldap overlay fix no longer needed";
in if isBroken then sssd'py311 else warnFixed sssd;
freeipa = let
inherit (prev) freeipa;
freeipa'py311 = (freeipa.override {
python3 = final.python311;
}).overrideAttrs (old: {
nativeBuildInputs = [
final.python311
] ++ old.nativeBuildInputs;
});
isBroken = !(builtins.tryEval freeipa.outPath).success;
warnFixed = lib.warnIf (lib.versionAtLeast final.python3.version "3.12") "python-ldap overlay fix no longer needed";
in if isBroken then freeipa'py311 else warnFixed freeipa;
} }