Unverified Commit dd14e394 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #229541 from KAction/contrib/0/borgmatic-systemd/out

parents 353a67c4 00b1cde8
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
{ borgbackup, coreutils, lib, python3Packages, systemd, installShellFiles, borgmatic, testers }:
{ lib
, stdenv
, borgbackup
, coreutils
, python3Packages
, systemd
, enableSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, installShellFiles
, borgmatic
, testers
}:

python3Packages.buildPythonApplication rec {
  pname = "borgmatic";
@@ -31,7 +41,7 @@ python3Packages.buildPythonApplication rec {
  postInstall = ''
    installShellCompletion --cmd borgmatic \
      --bash <($out/bin/borgmatic --bash-completion)

  '' + lib.optionalString enableSystemd ''
    mkdir -p $out/lib/systemd/system
    cp sample/systemd/borgmatic.timer $out/lib/systemd/system/
    # there is another "sleep", so choose the one with the space after it