From cacd8e4dbbc39926977c68cb1ba9b0de86e3ae2d Mon Sep 17 00:00:00 2001 From: gbhu753 Date: Sun, 28 Jun 2026 18:24:27 +1200 Subject: [PATCH] modctl: fix install check on aarch64-darwin modctl creates a ~/.modctl directory before running any cobra command. Go's os/user package doesn't respect $HOME on darwin and does system calls directly, so the installCheckPhase fails there. Pass --log-dir and --storage-dir pointing at $TMPDIR to avoid touching $HOME. --- pkgs/by-name/mo/modctl/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/mo/modctl/package.nix b/pkgs/by-name/mo/modctl/package.nix index cc7225ebe2dc..bb82464ff705 100644 --- a/pkgs/by-name/mo/modctl/package.nix +++ b/pkgs/by-name/mo/modctl/package.nix @@ -28,7 +28,7 @@ buildGoModule rec { installCheckPhase = '' runHook preInstallCheck $out/bin/modctl --help > /dev/null - $out/bin/modctl version 2>&1 | grep -q "v${version}" + $out/bin/modctl version --log-dir="$TMPDIR" --storage-dir="$TMPDIR" 2>&1 | grep -q "v${version}" runHook postInstallCheck '';