diff --git a/pkgs/by-name/cd/cdktf-cli/package.nix b/pkgs/by-name/cd/cdktf-cli/package.nix index cb7372dc5d76..307a09748376 100644 --- a/pkgs/by-name/cd/cdktf-cli/package.nix +++ b/pkgs/by-name/cd/cdktf-cli/package.nix @@ -14,6 +14,7 @@ removeReferencesTo, testers, yarn, + versionCheckHook, }: stdenv.mkDerivation (finalAttrs: { @@ -101,6 +102,8 @@ stdenv.mkDerivation (finalAttrs: { buildPhase = '' runHook preBuild + bash ./tools/align-version.sh + faketty yarn --offline build runHook postBuild @@ -139,6 +142,9 @@ stdenv.mkDerivation (finalAttrs: { "$out/lib/node_modules/cdktf-cli/node_modules/@cdktf/hcl2json/main.wasm" ''; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + passthru = { tests.version = testers.testVersion { package = finalAttrs.finalPackage;