nixpkgs/pkgs/tools/backup/attic/default.nix

30 lines
904 B
Nix
Raw Normal View History

{ stdenv, fetchzip, python3Packages, openssl, acl }:
2014-12-15 23:00:10 +01:00
python3Packages.buildPythonApplication rec {
2015-06-21 06:47:40 +02:00
name = "attic-${version}";
version = "0.16";
namePrefix = "";
2014-12-15 23:00:10 +01:00
src = fetchzip {
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-15 23:00:10 +01:00
propagatedBuildInputs = with python3Packages;
[ cython msgpack openssl acl llfuse-0-41 ];
2014-12-15 23:00:10 +01:00
2014-12-17 22:55:28 +01:00
preConfigure = ''
export ATTIC_OPENSSL_PREFIX="${openssl.dev}"
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;
license = licenses.bsd3;
maintainers = [ maintainers.wscott ];
platforms = platforms.unix; # Darwin and FreeBSD mentioned on homepage
};
2014-12-15 23:00:10 +01:00
}