Skip to content

Commit

Permalink
Merge pull request #212980 from tricktron/f-colima-lima-bin
Browse files Browse the repository at this point in the history
colima: use lima-bin on darwin for native macOS virtualization support
  • Loading branch information
wegank authored Feb 7, 2023
2 parents cad065d + 06a3791 commit f0d56a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/applications/virtualization/colima/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{ lib
, stdenv
, buildGoModule
, 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.isDarwin then lima-bin else lima
}:

buildGoModule rec {
Expand Down Expand Up @@ -41,7 +46,7 @@ buildGoModule rec {

postInstall = ''
wrapProgram $out/bin/colima \
--prefix PATH : ${lib.makeBinPath [ lima qemu ]}
--prefix PATH : ${lib.makeBinPath [ lima-drv qemu ]}
installShellCompletion --cmd colima \
--bash <($out/bin/colima completion bash) \
Expand Down

0 comments on commit f0d56a9

Please sign in to comment.