summary refs log tree commit diff
path: root/pkgs/tools/backup/rsnapshot/default.nix
blob: 3da2fad21f29cc75ec8a5f44d921b81d6a54ded2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{fetchurl, stdenv, perl, openssh, rsync, logger}:

stdenv.mkDerivation rec {
  name = "rsnapshot-1.3.0";
  src = fetchurl {
    url = "mirror://sourceforge/rsnapshot/${name}.tar.gz";
    sha256 = "19p35ycm73a8vd4ccjpah18h5jagvcr11rqca6ya87sg8k0a5h9z";
  };

  propagatedBuildInputs = [perl openssh rsync logger];

  patchPhase = ''
    substituteInPlace "Makefile.in" --replace \
      "/usr/bin/pod2man" "${perl}/bin/pod2man"
  '';

  meta = {
    description = "A filesystem snapshot utility for making backups of local and remote systems";
    homepage = http://rsnapshot.org/;
    license = "GPLv2+";
  };
}