lxd: use installShellFiles

This commit is contained in:
zowoq 2020-04-26 13:16:56 +10:00
parent 94e4ec143f
commit e7b44787b1

View file

@ -5,6 +5,7 @@
, writeShellScriptBin, apparmor-profiles, apparmor-parser
, criu
, bash
, installShellFiles
}:
buildGoPackage rec {
@ -39,11 +40,10 @@ buildGoPackage rec {
'')
]}
mkdir -p "$bin/share/bash-completion/completions/"
cp -av go/src/github.com/lxc/lxd/scripts/bash/lxd-client "$bin/share/bash-completion/completions/lxc"
installShellCompletion --bash go/src/github.com/lxc/lxd/scripts/bash/lxd-client
'';
nativeBuildInputs = [ pkgconfig makeWrapper ];
nativeBuildInputs = [ installShellFiles pkgconfig makeWrapper ];
buildInputs = [ lxc acl libcap libco-canonical.dev dqlite.dev
raft-canonical.dev sqlite-replication udev.dev ];