mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
borgmatic: Add bash completion (no other supported shell)
This commit is contained in:
parent
ee51699e2d
commit
dca7412a8b
@ -1,4 +1,4 @@
|
||||
{ borgbackup, coreutils, lib, python3Packages, systemd }:
|
||||
{ borgbackup, coreutils, lib, python3Packages, systemd, installShellFiles }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "borgmatic";
|
||||
@ -17,6 +17,8 @@ python3Packages.buildPythonApplication rec {
|
||||
"test_borgmatic_version_matches_news_version"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
borgbackup
|
||||
colorama
|
||||
@ -27,6 +29,9 @@ python3Packages.buildPythonApplication rec {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd borgmatic \
|
||||
--bash <($out/bin/borgmatic --bash-completion)
|
||||
|
||||
mkdir -p $out/lib/systemd/system
|
||||
cp sample/systemd/borgmatic.timer $out/lib/systemd/system/
|
||||
substitute sample/systemd/borgmatic.service \
|
||||
|
Loading…
Reference in New Issue
Block a user