From b37c9c5bee1998b45dc1bee40b901aa0ff25f578 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Wed, 3 Sep 2025 17:49:33 -0400 Subject: [PATCH] podman: fix darwin build --- pkgs/by-name/po/podman/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/po/podman/package.nix b/pkgs/by-name/po/podman/package.nix index ad3069791ddf..34170da7994f 100644 --- a/pkgs/by-name/po/podman/package.nix +++ b/pkgs/by-name/po/podman/package.nix @@ -34,6 +34,7 @@ passt, vfkit, versionCheckHook, + writableTmpDirAsHomeHook, }: let # do not add qemu to this wrapper, store paths get written to the podman vm config and break when GCed @@ -162,7 +163,11 @@ buildGoModule rec { ''; doInstallCheck = true; - nativeInstallCheckInputs = [ versionCheckHook ]; + nativeInstallCheckInputs = [ + versionCheckHook + writableTmpDirAsHomeHook + ]; + versionCheckKeepEnvironment = [ "HOME" ]; versionCheckProgramArg = "--version"; passthru.tests = lib.optionalAttrs stdenv.hostPlatform.isLinux {