Merge pull request #85545 from LnL7/meta-available-flags

meta: expose availability flags in derivation metadata
This commit is contained in:
Daiderd Jordan
2020-11-28 18:57:47 +01:00
committed by GitHub
2 changed files with 31 additions and 11 deletions
+2 -1
View File
@@ -328,8 +328,9 @@ in 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.
} // {
# Expose the result of the checks for everyone to see.
inherit (validity) unfree broken unsupported insecure;
available = validity.valid
&& (if config.checkMetaRecursively or false
then lib.all (d: d.meta.available or true) references