gemini-cli-bin: fix build on x86_64-darwin

This commit is contained in:
Kenichi Kamiya
2026-01-15 14:15:46 +09:00
parent dd57c074ef
commit 2b0fa042d2
@@ -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 = ''