Merge pull request #35111 from oxij/stdenv/available-evaluates

stdenv.mkDerivation: rename `meta.evaluates` -> `meta.available`

Changed files
+4 -4
nixos
doc
manual
pkgs
+1 -1
nixos/doc/manual/default.nix
···
package = args.package or (lib.attrByPath path (throw "Invalid package attribute path `${toString path}'") pkgs);
in "<listitem>"
+ "<para><literal>pkgs.${name} (${package.meta.name})</literal>"
-
+ lib.optionalString (!package.meta.evaluates) " <emphasis>[UNAVAILABLE]</emphasis>"
+ ": ${package.meta.description or "???"}.</para>"
+ lib.optionalString (args ? comment) "\n<para>${args.comment}</para>"
# Lots of `longDescription's break DocBook, so we just wrap them into <programlisting>
···
package = args.package or (lib.attrByPath path (throw "Invalid package attribute path `${toString path}'") pkgs);
in "<listitem>"
+ "<para><literal>pkgs.${name} (${package.meta.name})</literal>"
+
+ lib.optionalString (!package.meta.available) " <emphasis>[UNAVAILABLE]</emphasis>"
+ ": ${package.meta.description or "???"}.</para>"
+ lib.optionalString (args ? comment) "\n<para>${args.comment}</para>"
# Lots of `longDescription's break DocBook, so we just wrap them into <programlisting>
+1 -1
pkgs/stdenv/generic/check-meta.nix
···
executables = listOf str;
outputsToInstall = listOf str;
position = str;
-
evaluates = bool;
repositories = attrsOf str;
isBuildPythonPackage = platforms;
schedulingPriority = int;
···
executables = listOf str;
outputsToInstall = listOf str;
position = str;
+
available = bool;
repositories = attrsOf str;
isBuildPythonPackage = platforms;
schedulingPriority = int;
+2 -2
pkgs/stdenv/generic/make-derivation.nix
···
position = pos.file + ":" + toString pos.line;
# Expose the result of the checks for everyone to see.
} // {
-
evaluates = validity.valid
&& (if config.checkMetaRecursively or false
-
then lib.all (d: d.meta.evaluates or true) references
else true);
};
···
position = pos.file + ":" + toString pos.line;
# Expose the result of the checks for everyone to see.
} // {
+
available = validity.valid
&& (if config.checkMetaRecursively or false
+
then lib.all (d: d.meta.available or true) references
else true);
};