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

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

authored by Michael Raskin and committed by GitHub 7d264272 10b3f7d3

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