keepassxc-go: only generate shell completions if possible
This commit is contained in:
parent
f32a8ac989
commit
91ac44bb0d
@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
@ -19,7 +20,7 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = "sha256-jscyNyVr+RDN1EaxIOc3aYCAVT+1eO/c+dxEsIorDIs=";
|
||||
|
||||
postInstall = ''
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
local INSTALL="$out/bin/keepassxc-go"
|
||||
installShellCompletion --cmd keepassxc-go \
|
||||
--bash <($out/bin/keepassxc-go completion bash) \
|
||||
|
Loading…
Reference in New Issue
Block a user