From 179d274b6e8a73575871bbe5f13f6dd08013e564 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Fri, 15 Nov 2024 10:01:39 +0900 Subject: [PATCH] lima: fix build on Linux --- pkgs/applications/virtualization/lima/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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