2020-11-02 14:26:59 +00:00
|
|
|
{stdenv, lib, fetchFromGitHub, makeWrapper, gettext,
|
|
|
|
python3, rsync, cron, openssh, sshfs-fuse, encfs }:
|
2014-08-31 16:04:51 +00:00
|
|
|
|
2016-08-16 20:51:21 +00:00
|
|
|
let
|
2020-11-02 14:26:59 +00:00
|
|
|
python' = python3.withPackages (ps: with ps; [ dbus-python keyring ]);
|
2014-08-31 16:04:51 +00: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 12:41:18 +00:00
|
|
|
pname = "backintime-common";
|
2022-03-13 01:31:24 +00:00
|
|
|
version = "1.3.2";
|
2014-08-31 16:04:51 +00:00
|
|
|
|
2016-02-16 09:57:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bit-team";
|
|
|
|
repo = "backintime";
|
|
|
|
rev = "v${version}";
|
2022-03-13 01:31:24 +00:00
|
|
|
sha256 = "sha256-7iTQZ7SiESsKK8F8BpLrRNkj8JhHo64kliaOvMvYGvw=";
|
2014-08-31 16:04:51 +00:00
|
|
|
};
|
|
|
|
|
2020-11-02 14:26:59 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper gettext ];
|
|
|
|
buildInputs = [ python' ];
|
2014-08-31 16:04:51 +00: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 16:04:51 +00:00
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
2020-11-02 14:26:59 +00:00
|
|
|
preFixup = ''
|
2014-08-31 16:04:51 +00:00
|
|
|
wrapProgram "$out/bin/backintime" \
|
2020-11-02 14:26:59 +00:00
|
|
|
--prefix PATH : ${apps}
|
2014-08-31 16:04:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/bit-team/backintime";
|
2014-08-31 16:04:51 +00: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 16:04:51 +00: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
|
|
|
}
|