at 15.09-beta 27 lines 782 B view raw
1{ stdenv, fetchzip, python3Packages, openssl, acl }: 2 3python3Packages.buildPythonPackage rec { 4 name = "borg-${version}"; 5 version = "0.23.0"; 6 namePrefix = ""; 7 8 src = fetchzip { 9 name = "${name}-src"; 10 url = "https://github.com/borgbackup/borg/archive/${version}.tar.gz"; 11 sha256 = "1ns00bhrh4zm1s70mm32gnahj7yh4jdpkb8ziarhvcnknz7aga67"; 12 }; 13 14 propagatedBuildInputs = with python3Packages; 15 [ cython msgpack openssl acl llfuse tox detox ]; 16 17 preConfigure = '' 18 export BORG_OPENSSL_PREFIX="${openssl}" 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "A deduplicating backup program (attic fork)"; 23 homepage = https://borgbackup.github.io/; 24 license = licenses.bsd3; 25 platforms = platforms.unix; # Darwin and FreeBSD mentioned on homepage 26 }; 27}