openbao: Install bash shell completions
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
go_1_24,
|
||||
installShellFiles,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
nixosTests,
|
||||
@@ -43,8 +44,15 @@ buildGoModule.override { go = go_1_24; } (finalAttrs: {
|
||||
cp -r --no-preserve=mode ${finalAttrs.passthru.ui} http/web_ui
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/openbao $out/bin/bao
|
||||
|
||||
# https://github.com/posener/complete/blob/9a4745ac49b29530e07dc2581745a218b646b7a3/cmd/install/bash.go#L8
|
||||
installShellCompletion --bash --name bao <(echo complete -C "$out/bin/bao" bao)
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
|
||||
Reference in New Issue
Block a user