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