From b655b1c49dd9df2ecca1b7f6faa39fae10eef18b Mon Sep 17 00:00:00 2001 From: Andraz Brodnik Date: Tue, 21 Jul 2015 20:41:13 +0200 Subject: [PATCH] Add borg backup software (fork of attic) Borg is a fork of attic backup software. It is more actively developed, with more features. --- pkgs/tools/backup/borg/default.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/backup/borg/default.nix diff --git a/pkgs/tools/backup/borg/default.nix b/pkgs/tools/backup/borg/default.nix new file mode 100644 index 000000000000..f9a949f4d3fc --- /dev/null +++ b/pkgs/tools/backup/borg/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchzip, python3Packages, openssl, acl }: + +python3Packages.buildPythonPackage rec { + name = "borg-${version}"; + version = "0.23.0"; + namePrefix = ""; + + src = fetchzip { + name = "${name}-src"; + url = "https://github.com/borgbackup/borg/archive/${version}.tar.gz"; + sha256 = "1ns00bhrh4zm1s70mm32gnahj7yh4jdpkb8ziarhvcnknz7aga67"; + }; + + propagatedBuildInputs = with python3Packages; + [ cython msgpack openssl acl llfuse tox detox ]; + + preConfigure = '' + export BORG_OPENSSL_PREFIX="${openssl}" + ''; + + meta = with stdenv.lib; { + description = "A deduplicating backup program (attic fork)"; + homepage = https://borgbackup.github.io/; + license = licenses.bsd3; + platforms = platforms.unix; # Darwin and FreeBSD mentioned on homepage + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d66ebf21e1ac..d9b21deca559 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -755,6 +755,8 @@ let bochs = callPackage ../applications/virtualization/bochs { }; + borg = callPackage ../tools/backup/borg { }; + boomerang = callPackage ../development/tools/boomerang { }; boost-build = callPackage ../development/tools/boost-build { };