stdenv: provide meta.evaluates
This gives a way to see the result of `check-meta` without triggering any assertions.
This commit is contained in:
parent
9956687151
commit
ecd3990cd4
@ -159,6 +159,7 @@ let
|
|||||||
executables = listOf str;
|
executables = listOf str;
|
||||||
outputsToInstall = listOf str;
|
outputsToInstall = listOf str;
|
||||||
position = str;
|
position = str;
|
||||||
|
evaluates = bool;
|
||||||
repositories = attrsOf str;
|
repositories = attrsOf str;
|
||||||
isBuildPythonPackage = platforms;
|
isBuildPythonPackage = platforms;
|
||||||
schedulingPriority = str;
|
schedulingPriority = str;
|
||||||
|
@ -211,6 +211,9 @@ rec {
|
|||||||
# Fill `meta.position` to identify the source location of the package.
|
# Fill `meta.position` to identify the source location of the package.
|
||||||
// lib.optionalAttrs (pos != null) {
|
// lib.optionalAttrs (pos != null) {
|
||||||
position = pos.file + ":" + toString pos.line;
|
position = pos.file + ":" + toString pos.line;
|
||||||
|
# Expose the result of the checks for everyone to see.
|
||||||
|
} // {
|
||||||
|
evaluates = validity.valid;
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user