summary refs log tree commit diff
path: root/pkgs/tools/backup/luckybackup/default.nix
blob: a8f88e88b0e221bdf4d82c2bfe2731c5aaaf4cc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ mkDerivation, lib, fetchurl
, pkg-config, libtool, qmake
, rsync, ssh
}:

with lib;
mkDerivation rec {
  pname = "luckybackup";
  version = "0.5.0";

  src = fetchurl {
    url = "mirror://sourceforge/project/luckybackup/${version}/source/${pname}-${version}.tar.gz";
    sha256 = "0nwjsk1j33pm8882jbj8h6nxn6n5ab9dxqpqkay65pfbhcjay0g8";
  };

  buildInputs = [ rsync ssh ];

  nativeBuildInputs = [ pkg-config libtool qmake ];

  prePatch = ''
    for File in luckybackup.pro menu/luckybackup-pkexec \
        menu/luckybackup-su.desktop menu/luckybackup.desktop \
        menu/net.luckybackup.su.policy src/functions.cpp \
        src/global.cpp src/scheduleDialog.cpp; do
      substituteInPlace $File --replace "/usr" "$out"
    done
  '';

  meta = {
    description = "A powerful, fast and reliable backup & sync tool";
    longDescription = ''
      luckyBackup is an application for data back-up and synchronization
      powered by the rsync tool.

      It is simple to use, fast (transfers over only changes made and not
      all data), safe (keeps your data safe by checking all declared directories
      before proceeding in any data manipulation), reliable and fully
      customizable.
    '';
    homepage = "http://luckybackup.sourceforge.net/";
    license = licenses.gpl3;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.linux;
  };
}