stdenv: provide meta.evaluates

This gives a way to see the result of `check-meta` without triggering any assertions.
This commit is contained in:
Jan Malakhovski 2018-01-02 14:52:27 +00:00
parent 9956687151
commit ecd3990cd4
2 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,7 @@ let
executables = listOf str;
outputsToInstall = listOf str;
position = str;
evaluates = bool;
repositories = attrsOf str;
isBuildPythonPackage = platforms;
schedulingPriority = str;

View File

@ -211,6 +211,9 @@ rec {
# Fill `meta.position` to identify the source location of the package.
// lib.optionalAttrs (pos != null) {
position = pos.file + ":" + toString pos.line;
# Expose the result of the checks for everyone to see.
} // {
evaluates = validity.valid;
};
in