nixpkgs/pkgs/applications/networking/sync/backintime/common.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2016-02-16 09:57:33 +00:00
{stdenv, fetchFromGitHub, makeWrapper, gettext, python3, python3Packages, rsync, cron, openssh, sshfsFuse, encfs }:
2014-08-31 16:04:51 +00:00
stdenv.mkDerivation rec {
2016-02-16 09:57:33 +00:00
version = "1.1.12";
2014-08-31 16:04:51 +00:00
name = "backintime-common-${version}";
2016-02-16 09:57:33 +00:00
src = fetchFromGitHub {
owner = "bit-team";
repo = "backintime";
rev = "v${version}";
sha256 = "0n3x48wa8aa7i8fff85h3b5h3xpabk51ld0ymy3pkqh0krfgs59a";
2014-08-31 16:04:51 +00:00
};
buildInputs = [ makeWrapper gettext python3 python3Packages.dbus python3Packages.keyring openssh cron rsync sshfsFuse encfs ];
2014-08-31 16:04:51 +00: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 = {
2016-02-16 09:57:33 +00:00
homepage = https://github.com/bit-team/backintime;
2014-08-31 16:04:51 +00:00
description = "Simple backup tool for Linux";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.DamienCassou ];
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.
'';
};
}