From de3377bff06ee5a41ba0d27a02b0f1a2b6470269 Mon Sep 17 00:00:00 2001 From: Philipp Bartsch Date: Thu, 21 Jan 2021 23:12:29 +0100 Subject: usbguard: install shell completion --- pkgs/os-specific/linux/usbguard/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkgs/os-specific/linux/usbguard') diff --git a/pkgs/os-specific/linux/usbguard/default.nix b/pkgs/os-specific/linux/usbguard/default.nix index cff6df4ac1f..55832dc7ade 100644 --- a/pkgs/os-specific/linux/usbguard/default.nix +++ b/pkgs/os-specific/linux/usbguard/default.nix @@ -2,6 +2,7 @@ , lib , fetchFromGitHub , autoreconfHook +, installShellFiles , asciidoc , pkg-config , libxslt @@ -35,6 +36,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook + installShellFiles asciidoc pkg-config libxslt # xsltproc @@ -66,6 +68,11 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + postInstall = '' + installShellCompletion --bash --name usbguard.bash scripts/bash_completion/usbguard + installShellCompletion --zsh --name _usbguard scripts/usbguard-zsh-completion + ''; + meta = with lib; { description = "The USBGuard software framework helps to protect your computer against BadUSB"; longDescription = '' -- cgit 1.4.1