Merge pull request #110416 from tnias/usbguard_shell_completions_pr
usbguard: install shell completion
This commit is contained in:
commit
03c4d242e6
|
@ -2,6 +2,7 @@
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
|
, installShellFiles
|
||||||
, asciidoc
|
, asciidoc
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, libxslt
|
, libxslt
|
||||||
|
@ -35,6 +36,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoreconfHook
|
autoreconfHook
|
||||||
|
installShellFiles
|
||||||
asciidoc
|
asciidoc
|
||||||
pkg-config
|
pkg-config
|
||||||
libxslt # xsltproc
|
libxslt # xsltproc
|
||||||
|
@ -66,6 +68,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --bash --name usbguard.bash scripts/bash_completion/usbguard
|
||||||
|
installShellCompletion --zsh --name _usbguard scripts/usbguard-zsh-completion
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The USBGuard software framework helps to protect your computer against BadUSB";
|
description = "The USBGuard software framework helps to protect your computer against BadUSB";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|
Loading…
Reference in New Issue