mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
tests/package-options: allow option defaults to throw
This is often an intended behaviour, so just assume any option whose default throws is not a package-type option
This commit is contained in:
parent
a75c2235d9
commit
e64c511811
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@ let
|
||||||
internal ? false,
|
internal ? false,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
visible && !internal && isDerivation default
|
let
|
||||||
|
# Some options have defaults that throw when evaluated
|
||||||
|
default' = (builtins.tryEval default).value;
|
||||||
|
in
|
||||||
|
visible && !internal && isDerivation default'
|
||||||
) options;
|
) options;
|
||||||
|
|
||||||
# Bad options do not use `literalExpression` in their `defaultText`,
|
# Bad options do not use `literalExpression` in their `defaultText`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue