2020-11-02 14:26:59 +00:00
|
|
|
{stdenv, lib, fetchFromGitHub, makeWrapper, gettext,
|
|
|
|
python3, rsync, cron, openssh, sshfs-fuse, encfs }:
|
2014-08-31 17:04:51 +01:00
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
let
|
2020-11-02 14:26:59 +00:00
|
|
|
python' = python3.withPackages (ps: with ps; [ dbus-python keyring ]);
|
2014-08-31 17:04:51 +01:00
|
|
|
|
2020-11-02 14:26:59 +00:00
|
|
|
apps = lib.makeBinPath [ openssh python' cron rsync sshfs-fuse encfs ];
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "backintime-common";
|
2020-11-02 14:26:59 +00:00
|
|
|
version = "1.2.1";
|
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}";
|
2020-11-02 14:26:59 +00:00
|
|
|
sha256 = "mBjheLY7DHs995heZmxVnDdvABkAROCjRJ4a/uJmJcg=";
|
2014-08-31 17:04:51 +01:00
|
|
|
};
|
|
|
|
|
2020-11-02 14:26:59 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper gettext ];
|
|
|
|
buildInputs = [ python' ];
|
2014-08-31 17:04:51 +01:00
|
|
|
|
|
|
|
installFlags = [ "DEST=$(out)" ];
|
|
|
|
|
2020-11-02 14:26:59 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd common
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace "/.." "" \
|
|
|
|
--replace "share/backintime" "${python'.sitePackages}/backintime"
|
|
|
|
substituteInPlace "backintime" \
|
|
|
|
--replace "share" "${python'.sitePackages}"
|
|
|
|
'';
|
2014-08-31 17:04:51 +01:00
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
2020-11-02 14:26:59 +00:00
|
|
|
preFixup = ''
|
2014-08-31 17:04:51 +01:00
|
|
|
wrapProgram "$out/bin/backintime" \
|
2020-11-02 14:26:59 +00:00
|
|
|
--prefix PATH : ${apps}
|
2014-08-31 17:04:51 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2017-01-31 10:00:14 +00:00
|
|
|
maintainers = [ ];
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.all;
|
2014-08-31 17:04:51 +01:00
|
|
|
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
|
|
|
}
|