lima: fix build on Linux

(cherry picked from commit 179d274b6e)
This commit is contained in:
Kenichi Kamiya 2024-11-15 10:01:39 +09:00 committed by github-actions[bot]
parent d56e800c3c
commit 545930eed8

View File

@ -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