modules/output: check warnings+assertions on build.package

Add a `build.packageUnchecked` option for use instead of the old `check`
evalNixvim argument.
This commit is contained in:
Matt Sturgeon 2024-09-24 07:02:22 +01:00
parent 2ea7009e61
commit 6a1bf6bdc3
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
9 changed files with 50 additions and 48 deletions

View file

@ -9,7 +9,7 @@ let
cfg = config.test;
inherit (config) warnings;
assertions = lib.nixvim.modules.getAssertionMessages config.assertions;
assertions = builtins.concatMap (x: lib.optional (!x.assertion) x.message) config.assertions;
in
{
options.test = {
@ -70,7 +70,7 @@ in
build.test =
pkgs.runCommandNoCCLocal cfg.name
{
nativeBuildInputs = [ config.build.package ];
nativeBuildInputs = [ config.build.packageUnchecked ];
# Allow inspecting the test's module a little from the repl
# e.g.