diff options
author | Emily | 2024-11-15 12:59:19 +0000 |
---|---|---|
committer | GitHub | 2024-11-15 12:59:19 +0000 |
commit | 8874a5ae6f8009a4a37b99e1a3578e5a9ddf35bf (patch) | |
tree | d6301ad2ec7f0cf8da3db75079dc749081a5d33b | |
parent | 9cb6c4e2e78f4351c3e1a993cbb34b111f3d569b (diff) | |
parent | 545930eed811a3e046171faaa0749bfcf79c007d (diff) |
[Backport release-24.11] lima: fix build on Linux (#356161) release-24.11
-rw-r--r-- | pkgs/applications/virtualization/lima/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
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 |