lima: fix build on Linux

This commit is contained in:
Kenichi Kamiya 2024-11-15 10:01:39 +09:00
parent 4aad3e8c77
commit 179d274b6e
No known key found for this signature in database
GPG Key ID: 9BE4016A38165CCB

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