diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-22 09:28:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 09:28:57 +0100 |
commit | 03c4d242e6f7ae0b3718b9abec471f2daa556671 (patch) | |
tree | d9b4590dc54f9bc788889e194a2c72d2f94621e5 | |
parent | b424ecd84eaf1c68a2a3b78b27bd387a4b85578a (diff) | |
parent | de3377bff06ee5a41ba0d27a02b0f1a2b6470269 (diff) | |
download | nixpkgs-03c4d242e6f7ae0b3718b9abec471f2daa556671.tar nixpkgs-03c4d242e6f7ae0b3718b9abec471f2daa556671.tar.gz nixpkgs-03c4d242e6f7ae0b3718b9abec471f2daa556671.tar.bz2 nixpkgs-03c4d242e6f7ae0b3718b9abec471f2daa556671.tar.lz nixpkgs-03c4d242e6f7ae0b3718b9abec471f2daa556671.tar.xz nixpkgs-03c4d242e6f7ae0b3718b9abec471f2daa556671.tar.zst nixpkgs-03c4d242e6f7ae0b3718b9abec471f2daa556671.zip |
Merge pull request #110416 from tnias/usbguard_shell_completions_pr
usbguard: install shell completion
-rw-r--r-- | pkgs/os-specific/linux/usbguard/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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 = '' |