mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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
2 changed files with 4 additions and 0 deletions
|
@ -159,6 +159,7 @@ let
|
|||
executables = listOf str;
|
||||
outputsToInstall = listOf str;
|
||||
position = str;
|
||||
evaluates = bool;
|
||||
repositories = attrsOf str;
|
||||
isBuildPythonPackage = platforms;
|
||||
schedulingPriority = str;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue