gokrazy: install shell completion

This commit is contained in:
Marcus Ramberg
2026-01-18 15:03:42 +01:00
parent e5eeb6a65e
commit 6aa90f4207
+10
View File
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
@@ -25,6 +26,15 @@ buildGoModule rec {
subPackages = [ "cmd/gok" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd gok \
--bash <($out/bin/gok completion bash) \
--fish <($out/bin/gok completion fish) \
--zsh <($out/bin/gok completion zsh)
'';
meta = {
description = "Turn your Go program(s) into an appliance running on the Raspberry Pi 3, Pi 4, Pi Zero 2 W, or amd64 PCs";
homepage = "https://github.com/gokrazy/gokrazy";