1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

borgmatic: refactor

This commit is contained in:
x123 2024-07-05 07:58:25 +02:00
parent b797a7d4ae
commit 148e75b7d7

View file

@ -1,17 +1,17 @@
{ lib
, stdenv
, borgbackup
, coreutils
, python3Packages
, fetchpatch
, fetchPypi
, systemd
, enableSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, installShellFiles
, borgmatic
, testers
{
borgbackup,
borgmatic,
coreutils,
enableSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
fetchPypi,
fetchpatch,
installShellFiles,
lib,
python3Packages,
stdenv,
systemd,
testers,
}:
python3Packages.buildPythonApplication rec {
pname = "borgmatic";
version = "1.8.11";
@ -44,13 +44,13 @@ python3Packages.buildPythonApplication rec {
colorama
jsonschema
packaging
ruamel-yaml
requests
ruamel-yaml
setuptools
];
passthru.optional-dependencies = {
apprise = with python3Packages; [ apprise ];
apprise = [ python3Packages.apprise ];
};
postInstall = ''
@ -72,11 +72,11 @@ python3Packages.buildPythonApplication rec {
__darwinAllowLocalNetworking = true;
meta = with lib; {
meta = {
description = "Simple, configuration-driven backup software for servers and workstations";
homepage = "https://torsion.org/borgmatic/";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ imlonghao ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ imlonghao ];
};
}