diff --git a/pkgs/by-name/ge/gemini-cli-bin/package.nix b/pkgs/by-name/ge/gemini-cli-bin/package.nix index 8634e95963b0..f3e8edabf114 100644 --- a/pkgs/by-name/ge/gemini-cli-bin/package.nix +++ b/pkgs/by-name/ge/gemini-cli-bin/package.nix @@ -3,6 +3,7 @@ stdenvNoCC, fetchurl, nodejs, + sysctl, writableTmpDirAsHomeHook, nix-update-script, }: @@ -42,6 +43,9 @@ stdenvNoCC.mkDerivation (finalAttrs: { doInstallCheck = true; nativeInstallCheckInputs = [ writableTmpDirAsHomeHook + ] + ++ lib.optionals (with stdenvNoCC.hostPlatform; isDarwin && isx86_64) [ + sysctl ]; # versionCheckHook cannot be used because the reported version might be incorrect (e.g., 0.6.1 returns 0.6.0). installCheckPhase = ''