mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00

Previously the .enable option was used to encode the condition as well, which lead to some oddness: - In order to encode an assertion, one had to invert it - To disable a check, one had to mkForce it By introducing a separate .check option this is solved because: - It can be used to encode assertions - Disabling is done separately with .enable option, whose default can be overridden without a mkForce
6 lines
88 B
Nix
6 lines
88 B
Nix
{
|
|
_module.checks.test = {
|
|
check = false;
|
|
message = "Assertion failed";
|
|
};
|
|
}
|