mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
c2726dd41b
commit
ffde3c1c27
14 changed files with 170 additions and 131 deletions
|
|
@ -8,16 +8,23 @@ in {
|
|||
freeipa = let
|
||||
inherit (prev) freeipa;
|
||||
python3 = final.python311;
|
||||
freeipa'py311 = (freeipa.override {
|
||||
inherit python3;
|
||||
}).overrideAttrs (old: {
|
||||
nativeBuildInputs = [
|
||||
python3
|
||||
] ++ old.nativeBuildInputs;
|
||||
});
|
||||
freeipa'py311 =
|
||||
(freeipa.override {
|
||||
inherit python3;
|
||||
})
|
||||
.overrideAttrs (old: {
|
||||
nativeBuildInputs =
|
||||
[
|
||||
python3
|
||||
]
|
||||
++ old.nativeBuildInputs;
|
||||
});
|
||||
isBroken = !(builtins.tryEval freeipa.outPath).success;
|
||||
isUpdated = lib.versionAtLeast freeipa.version "4.12.2";
|
||||
isPythonUpdated = lib.versionAtLeast final.python3.version "3.12";
|
||||
warnFixed = lib.warnIf isUpdated "freeipa python overlay fix probably no longer needed";
|
||||
in if isPythonUpdated && (isBroken || !isUpdated) then freeipa'py311 else warnFixed freeipa;
|
||||
in
|
||||
if isPythonUpdated && (isBroken || !isUpdated)
|
||||
then freeipa'py311
|
||||
else warnFixed freeipa;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue