diff --git a/pkgs/applications/virtualization/lima/default.nix b/pkgs/applications/virtualization/lima/default.nix index 7cdde587183f..0f9ffb1dbc54 100644 --- a/pkgs/applications/virtualization/lima/default.nix +++ b/pkgs/applications/virtualization/lima/default.nix @@ -39,10 +39,15 @@ buildGoModule rec { buildPhase = '' runHook preBuild - make "VERSION=v${version}" binaries + make "VERSION=v${version}" "CC=${stdenv.cc.targetPrefix}cc" binaries runHook postBuild ''; + preCheck = '' + # Workaround for: could not create "/homeless-shelter/.lima/_config" directory: mkdir /homeless-shelter: permission denied + export LIMA_HOME="$(mktemp -d)" + ''; + installPhase = '' runHook preInstall mkdir -p $out