2016-09-18 16:43:58 +01:00
|
|
|
{stdenv, fetchFromGitHub, makeWrapper, gettext, python3Packages, rsync, cron, openssh, sshfs-fuse, encfs }:
|
2014-08-31 17:04:51 +01:00
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
let
|
|
|
|
inherit (python3Packages) python dbus-python keyring;
|
|
|
|
in stdenv.mkDerivation rec {
|
2018-03-16 12:04:18 +00:00
|
|
|
version = "1.1.24";
|
2014-08-31 17:04:51 +01:00
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "backintime-common";
|
2014-08-31 17:04:51 +01:00
|
|
|
|
2016-02-16 09:57:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bit-team";
|
|
|
|
repo = "backintime";
|
|
|
|
rev = "v${version}";
|
2018-03-16 12:04:18 +00:00
|
|
|
sha256 = "0g6gabnr60ns8854hijdddbanks7319q4n3fj5l6rc4xsq0qck18";
|
2014-08-31 17:04:51 +01:00
|
|
|
};
|
|
|
|
|
2016-09-18 16:43:58 +01:00
|
|
|
buildInputs = [ makeWrapper gettext python dbus-python keyring openssh cron rsync sshfs-fuse encfs ];
|
2014-08-31 17:04:51 +01:00
|
|
|
|
|
|
|
installFlags = [ "DEST=$(out)" ];
|
|
|
|
|
|
|
|
preConfigure = "cd common";
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
preFixup =
|
|
|
|
''
|
|
|
|
substituteInPlace "$out/bin/backintime" \
|
|
|
|
--replace "=\"/usr/share" "=\"$prefix/share"
|
|
|
|
wrapProgram "$out/bin/backintime" \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PATH : "$prefix/bin:$PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bit-team/backintime";
|
2014-08-31 17:04:51 +01:00
|
|
|
description = "Simple backup tool for Linux";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2017-01-31 10:00:14 +00:00
|
|
|
maintainers = [ ];
|
2014-08-31 17:04:51 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
longDescription = ''
|
|
|
|
Back In Time is a simple backup tool (on top of rsync) for Linux
|
|
|
|
inspired from “flyback project” and “TimeVault”. The backup is
|
|
|
|
done by taking snapshots of a specified set of directories.
|
|
|
|
'';
|
|
|
|
};
|
2015-01-16 09:30:08 +00:00
|
|
|
}
|