fix: make brokenVersions actually work

resolves #297
This commit is contained in:
Sridhar Ratnakumar 2024-04-03 17:09:10 +11:00
parent cac0cff083
commit b1db0d5312
2 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@
- #222: Improve `cabal.project` parser by handling files not ending with newline
- #271, #223: Change all `types.attrsOf` to `types.lazyAttrsOf`. If you use `lib.mkIf` for `attrsOf` values (not `submodule` options), use `lib.optionalAttrs` instead. This fixes #270 (`basePackages`) and improves performance.
- #296: Fix `removeConfigureFlags` to actually work.
- #297: Fix `brokenVersions` to actually work.
## 0.4.0 (Aug 22, 2023)

View File

@ -45,14 +45,14 @@ in
if enable then markBroken else unmarkBroken;
};
brokenVersions = {
type = types.lazyAttrsOf types.str;
type = types.listOf types.str;
description = ''
List of versions that are known to be broken.
'';
impl = versions:
let
markBrokenVersions = vs: drv:
builtins.foldl' markBrokenVersion drv vs;
builtins.foldl' (lib.flip markBrokenVersion) drv vs;
in
markBrokenVersions versions;
};