borgmatic: Add bash completion (no other supported shell)

+6 -1
+6 -1
pkgs/tools/backup/borgmatic/default.nix
··· 1 - { borgbackup, coreutils, lib, python3Packages, systemd }: 1 + { borgbackup, coreutils, lib, python3Packages, systemd, installShellFiles }: 2 2 3 3 python3Packages.buildPythonApplication rec { 4 4 pname = "borgmatic"; ··· 17 17 "test_borgmatic_version_matches_news_version" 18 18 ]; 19 19 20 + nativeBuildInputs = [ installShellFiles ]; 21 + 20 22 propagatedBuildInputs = with python3Packages; [ 21 23 borgbackup 22 24 colorama ··· 27 29 ]; 28 30 29 31 postInstall = '' 32 + installShellCompletion --cmd borgmatic \ 33 + --bash <($out/bin/borgmatic --bash-completion) 34 + 30 35 mkdir -p $out/lib/systemd/system 31 36 cp sample/systemd/borgmatic.timer $out/lib/systemd/system/ 32 37 substitute sample/systemd/borgmatic.service \