1
1
class Lima < Formula
2
2
desc "Linux virtual machines"
3
3
homepage "https://lima-vm.io/"
4
- url "https://github.com/lima-vm/lima/archive/refs/tags/v1.0.7 .tar.gz"
5
- sha256 "90f682e96a370c342c3b16deb1858f37ee28ce88e888e1d6b2634ba24228fdbb "
4
+ url "https://github.com/lima-vm/lima/archive/refs/tags/v1.1.0-rc.0 .tar.gz"
5
+ sha256 "bfae3d127b62446794f3f5c33975b35958dc29d06c15b8255cc1172ea7db134e "
6
6
license "Apache-2.0"
7
7
head "https://github.com/lima-vm/lima.git" , branch : "master"
8
8
@@ -23,11 +23,14 @@ class Lima < Formula
23
23
end
24
24
25
25
def install
26
+ # make (default): build everything
27
+ # make native: build core + native guest agent
28
+ # make additional-guestagents: build non-native guest agents
26
29
if build . head?
27
- system "make"
30
+ system "make" , "native"
28
31
else
29
32
# VERSION has to be explicitly specified when building from tar.gz, as it does not contain git tags
30
- system "make" , "VERSION=#{ version } "
33
+ system "make" , "native" , " VERSION=#{ version } "
31
34
end
32
35
33
36
bin . install Dir [ "_output/bin/*" ]
@@ -37,6 +40,14 @@ def install
37
40
generate_completions_from_executable ( bin /"limactl" , "completion" )
38
41
end
39
42
43
+ def caveats
44
+ # since lima 1.1.0
45
+ <<~EOS
46
+ The guest agents for non-native architectures are now provided in a separate formula:
47
+ brew install lima-additional-guestagents
48
+ EOS
49
+ end
50
+
40
51
test do
41
52
info = JSON . parse shell_output ( "#{ bin } /limactl info" )
42
53
# Verify that the VM drivers are compiled in
0 commit comments