3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/sync/backintime/common.nix
Damien Cassou 2bdfa515c9 Update backintime to 1.1.0
This release removed the Gnome UI to only keep the Qt4 one.
2015-01-16 10:31:16 +01:00

43 lines
1.3 KiB
Nix

{stdenv, fetchurl, makeWrapper, gettext, python3, python3Packages, rsync, cron, openssh, sshfsFuse, encfs }:
stdenv.mkDerivation rec {
version = "1.1.0";
name = "backintime-common-${version}";
src = fetchurl {
url = "https://launchpad.net/backintime/1.1/${version}/+download/backintime-${version}.tar.gz";
md5 = "21e15538c38d0c440c1281457319c7f1";
};
buildInputs = [ makeWrapper gettext python3 python3Packages.dbus python3Packages.keyring openssh cron rsync sshfsFuse encfs ];
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 = {
homepage = https://launchpad.net/backintime;
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.
'';
};
}