aws-cdk-cli.tests: fix the eval

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 {
This commit is contained in:
Sergei Trofimovich
2025-12-24 11:06:48 +00:00
parent 68621df42d
commit 14c11c8ca5
+1 -1
View File
@@ -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"