-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`colima` is a very easy usable replacement for Docker Desktop on MacOS. Signed-off-by: Andreas Schmid <[email protected]>
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ lib | ||
, buildGoModule | ||
, fetchFromGitHub | ||
, installShellFiles | ||
, lima | ||
, makeWrapper | ||
}: | ||
|
||
buildGoModule rec { | ||
pname = "colima"; | ||
version = "0.2.2"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "abiosoft"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "sha256-vWNkYsT2XF+oMOQ3pb1+/a207js8B+EmVanRQrYE/2A="; | ||
}; | ||
|
||
nativeBuildInputs = [ installShellFiles makeWrapper ]; | ||
|
||
vendorSha256 = "sha256-F1ym88JrJWzsBg89Y1ufH4oefIRBwTGOw72BrjtpvBw="; | ||
|
||
postInstall = '' | ||
wrapProgram $out/bin/colima \ | ||
--prefix PATH : ${lib.makeBinPath [ lima ]} | ||
installShellCompletion --cmd colima \ | ||
--bash <($out/bin/colima completion bash) \ | ||
--fish <($out/bin/colima completion fish) \ | ||
--zsh <($out/bin/colima completion zsh) | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Container runtimes on MacOS with minimal setup"; | ||
homepage = "https://github.com/abiosoft/colima"; | ||
license = licenses.mit; | ||
platforms = platforms.darwin; | ||
maintainers = with maintainers; [ aaschmid ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters