From 9cd61a47a9cb7f26e45c55058d1a0316c3a2132e Mon Sep 17 00:00:00 2001 From: aleksana Date: Fri, 28 Nov 2025 21:39:57 +0800 Subject: [PATCH 1/2] cdktf-cli: disable versionCheckHook on darwin --- pkgs/by-name/cd/cdktf-cli/package.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/cd/cdktf-cli/package.nix b/pkgs/by-name/cd/cdktf-cli/package.nix index 307a09748376..7573abdb5eaa 100644 --- a/pkgs/by-name/cd/cdktf-cli/package.nix +++ b/pkgs/by-name/cd/cdktf-cli/package.nix @@ -142,8 +142,13 @@ stdenv.mkDerivation (finalAttrs: { "$out/lib/node_modules/cdktf-cli/node_modules/@cdktf/hcl2json/main.wasm" ''; - nativeInstallCheckInputs = [ versionCheckHook ]; - doInstallCheck = true; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + + # Tries to write to /var/empty/.terraform.d on darwin + # even with writableTmpDirAsHomeHook and CHECKPOINT_DISABLE=1 + doInstallCheck = stdenv.hostPlatform.isLinux; passthru = { tests.version = testers.testVersion { From e079280c51d1c2e7c2e9eb4e37e978fd9ae53cd8 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sat, 6 Dec 2025 22:12:45 +0800 Subject: [PATCH 2/2] cdktf-cli: remove testVersion in favor or versionCheckHook --- pkgs/by-name/cd/cdktf-cli/package.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkgs/by-name/cd/cdktf-cli/package.nix b/pkgs/by-name/cd/cdktf-cli/package.nix index 7573abdb5eaa..7d338e863da8 100644 --- a/pkgs/by-name/cd/cdktf-cli/package.nix +++ b/pkgs/by-name/cd/cdktf-cli/package.nix @@ -150,12 +150,7 @@ stdenv.mkDerivation (finalAttrs: { # even with writableTmpDirAsHomeHook and CHECKPOINT_DISABLE=1 doInstallCheck = stdenv.hostPlatform.isLinux; - passthru = { - tests.version = testers.testVersion { - package = finalAttrs.finalPackage; - }; - updateScript = nix-update-script { }; - }; + passthru.updateScript = nix-update-script { }; meta = { description = "CDK for Terraform CLI";