colima: init at 0.2.2

`colima` is a very easy usable replacement for Docker Desktop on MacOS.

Signed-off-by: Andreas Schmid <service@aaschmid.de>
This commit is contained in:
Andreas Schmid 2021-12-11 18:24:32 +01:00 committed by zowoq
parent 7f312240b5
commit c4dbe8fe65
2 changed files with 43 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -32479,6 +32479,8 @@ with pkgs;
idsk = callPackage ../tools/filesystems/idsk { };
colima = callPackage ../applications/virtualization/colima {};
lima = callPackage ../applications/virtualization/lima {};
logtop = callPackage ../tools/misc/logtop { };