2014-12-24 12:07:19 +01:00
|
|
|
{ stdenv, fetchzip, python3Packages, openssl, acl }:
|
2014-12-15 23:00:10 +01:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2015-06-21 06:47:40 +02:00
|
|
|
name = "attic-${version}";
|
|
|
|
version = "0.16";
|
2014-12-18 08:14:52 +01:00
|
|
|
namePrefix = "";
|
2014-12-15 23:00:10 +01:00
|
|
|
|
2014-12-24 12:07:19 +01:00
|
|
|
src = fetchzip {
|
2015-04-03 06:49:39 +02:00
|
|
|
name = "${name}-src";
|
2015-06-21 06:47:40 +02:00
|
|
|
url = "https://github.com/jborg/attic/archive/${version}.tar.gz";
|
|
|
|
sha256 = "008566hhsd3ck70ql0fdn4vaqjfcnf493gwd49d6294f8r7qn06z";
|
2014-12-18 08:14:52 +01:00
|
|
|
};
|
2014-12-15 23:00:10 +01:00
|
|
|
|
2014-12-18 08:39:11 +01:00
|
|
|
propagatedBuildInputs = with python3Packages;
|
2015-01-02 15:06:48 +01:00
|
|
|
[ cython msgpack openssl acl llfuse ];
|
2014-12-15 23:00:10 +01:00
|
|
|
|
2014-12-17 22:55:28 +01:00
|
|
|
preConfigure = ''
|
2016-04-16 19:44:32 +02:00
|
|
|
export ATTIC_OPENSSL_PREFIX="${openssl.dev}"
|
2015-11-20 13:48:30 +01:00
|
|
|
substituteInPlace setup.py --replace "version=versioneer.get_version()" "version='${version}'"
|
2014-12-17 22:55:28 +01:00
|
|
|
'';
|
|
|
|
|
2014-12-15 23:00:10 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-21 06:47:40 +02:00
|
|
|
description = "A deduplicating backup program";
|
|
|
|
homepage = https://attic-backup.org;
|
2014-12-18 08:14:52 +01:00
|
|
|
license = licenses.bsd3;
|
2014-12-18 13:36:35 +01:00
|
|
|
maintainers = [ maintainers.wscott ];
|
|
|
|
platforms = platforms.unix; # Darwin and FreeBSD mentioned on homepage
|
2014-12-18 08:14:52 +01:00
|
|
|
};
|
2014-12-15 23:00:10 +01:00
|
|
|
}
|