about summary refs log tree commit diff
path: root/pkgs/tools/backup/attic/default.nix
blob: 99190021e23c62981070b0fda4d1c6af4b9805b4 (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
{ stdenv, fetchzip, python3Packages, openssl, acl }:

python3Packages.buildPythonPackage rec {
  name = "attic-0.14";
  namePrefix = "";

  src = fetchzip {
    url = "https://github.com/jborg/attic/archive/0.14.tar.gz";
    sha256 = "17y7kihykaf84sy9cm00fn4wcc7rnhv2792kcwplylz7dsm7ksiw";
  };

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

  preConfigure = ''
    export ATTIC_OPENSSL_PREFIX="${openssl}"
  '';

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