From 14c11c8ca591be1c160e274a2707eefe9eeca18d Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 24 Dec 2025 11:06:48 +0000 Subject: [PATCH] aws-cdk-cli.tests: fix the eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change the eval fails on `master` as: $ nix build --no-link -f. aws-cdk-cli.tests error: … while evaluating the attribute 'version' at pkgs/by-name/aw/aws-cdk-cli/package.nix:104:5: 103| passthru = { 104| tests.version = testers.testVersion { package = finalAttrs.package; }; | ^ 105| updateScript = nix-update-script { … while evaluating the 'name' attribute of a derivation … while evaluating a branch condition at lib/strings.nix:2882:5: 2881| # First detect the common case of already valid strings, to speed those up 2882| if stringLength string <= 207 && okRegex string != null then | ^ 2883| unsafeDiscardStringContext string (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: attribute 'package' missing at pkgs/by-name/aw/aws-cdk-cli/package.nix:104:53: 103| passthru = { 104| tests.version = testers.testVersion { package = finalAttrs.package; }; | ^ 105| updateScript = nix-update-script { --- pkgs/by-name/aw/aws-cdk-cli/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/aw/aws-cdk-cli/package.nix b/pkgs/by-name/aw/aws-cdk-cli/package.nix index 2af3ec060406..0e9af39956b0 100644 --- a/pkgs/by-name/aw/aws-cdk-cli/package.nix +++ b/pkgs/by-name/aw/aws-cdk-cli/package.nix @@ -101,7 +101,7 @@ stdenv.mkDerivation (finalAttrs: { dontFixup = true; passthru = { - tests.version = testers.testVersion { package = finalAttrs.package; }; + tests.version = testers.testVersion { package = finalAttrs.finalPackage; }; updateScript = nix-update-script { extraArgs = [ "--version-regex"