summary refs log tree commit diff
path: root/pkgs/tools/backup/attic/default.nix
blob: 0e2462c5ec850191ca9bbe06b79c252f6843be5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchzip, python3Packages, openssl, acl }:

python3Packages.buildPythonPackage rec {
  name = "attic-${version}";
  version = "0.16";
  namePrefix = "";

  src = fetchzip {
    name = "${name}-src";
    url = "https://github.com/jborg/attic/archive/${version}.tar.gz";
    sha256 = "008566hhsd3ck70ql0fdn4vaqjfcnf493gwd49d6294f8r7qn06z";
  };

  propagatedBuildInputs = with python3Packages;
    [ cython msgpack openssl acl llfuse ];

  preConfigure = ''
    export ATTIC_OPENSSL_PREFIX="${openssl}"
    substituteInPlace setup.py --replace "version=versioneer.get_version()" "version='${version}'"
  '';

  meta = with stdenv.lib; {
    description = "A deduplicating backup program";
    homepage = https://attic-backup.org;
    license = licenses.bsd3;
    maintainers = [ maintainers.wscott ];
    platforms = platforms.unix; # Darwin and FreeBSD mentioned on homepage
  };
}