diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dd1d71..90761b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/nix/modules/project/settings/all.nix b/nix/modules/project/settings/all.nix index b44ee3f..e6730fe 100644 --- a/nix/modules/project/settings/all.nix +++ b/nix/modules/project/settings/all.nix @@ -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; };