colima: use source build lima on darwin too

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
Ihar Hrachyshka
2025-05-13 21:28:06 -04:00
parent f406cd0ccb
commit 9aa0e679da
+1 -5
View File
@@ -6,14 +6,10 @@
fetchFromGitHub,
installShellFiles,
lima,
lima-bin,
makeWrapper,
qemu,
testers,
colima,
# use lima-bin on darwin to support native macOS virtualization
# https://github.com/NixOS/nixpkgs/pull/209171
lima-drv ? if stdenv.hostPlatform.isDarwin then lima-bin else lima,
}:
buildGoModule rec {
@@ -55,7 +51,7 @@ buildGoModule rec {
wrapProgram $out/bin/colima \
--prefix PATH : ${
lib.makeBinPath [
lima-drv
lima
qemu
]
}