2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, lima
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "colima";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "0.3.2";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "abiosoft";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "sha256-hZ5BqNHQAMzL69ptpbTT+fN4NdV4AFhboCL2t1sF5AQ=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
vendorSha256 = "sha256-Z4+qwoX04VnLsUIYRfOowFLgcaA9w8oGRl77jzFigIc=";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ aaschmid ];
|
|
|
|
};
|
|
|
|
}
|