whenHelpers
lib.kernel.whenHelpers
Docs pulled from | This Revision | 13 minutes ago
Common patterns/legacy used in common-config/hardened/config.nix
Noogle detected
Implementation
The following is the current implementation of this function.
whenHelpers = version: {
whenAtLeast = ver: mkIf (versionAtLeast version ver);
whenOlder = ver: mkIf (versionOlder version ver);
# range is (inclusive, exclusive)
whenBetween = verLow: verHigh: mkIf (versionAtLeast version verLow && versionOlder version verHigh);
};