mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix: broken sssd and freeipa packages
This commit is contained in:
parent
a7e4b5d7fa
commit
a7165edc42
2 changed files with 24 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ in {
|
|||
];
|
||||
krb5.inputs = [
|
||||
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 = [
|
||||
packages.x86_64-linux.openwebrxplus
|
||||
|
|
|
|||
|
|
@ -4,4 +4,26 @@ in {
|
|||
krb5-ldap = final.krb5.override {
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue