2016-05-12 02:19:16 +03:00
|
|
|
{ fetchurl, stdenv, writeText, perl, openssh, rsync, logger }:
|
2008-03-07 12:33:51 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-15 14:19:00 +03:00
|
|
|
name = "rsnapshot-1.4.2";
|
2015-12-02 19:31:25 +03:00
|
|
|
|
2008-03-07 12:33:51 +03:00
|
|
|
src = fetchurl {
|
2015-12-02 19:31:25 +03:00
|
|
|
url = "http://rsnapshot.org/downloads/${name}.tar.gz";
|
2016-05-15 14:19:00 +03:00
|
|
|
sha256 = "05jfy99a0xs6lvsjfp3wz21z0myqhmwl2grn3jr9clijbg282ah4";
|
2008-03-07 12:33:51 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [perl openssh rsync logger];
|
|
|
|
|
2016-05-12 02:19:16 +03:00
|
|
|
configureFlags = [ "--sysconfdir=/etc --prefix=/" ];
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
2008-03-07 12:33:51 +03:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace "Makefile.in" --replace \
|
|
|
|
"/usr/bin/pod2man" "${perl}/bin/pod2man"
|
|
|
|
'';
|
|
|
|
|
2014-10-02 00:24:27 +04:00
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 16:27:40 +03:00
|
|
|
description = "A filesystem snapshot utility for making backups of local and remote systems";
|
2008-03-07 12:33:51 +03:00
|
|
|
homepage = http://rsnapshot.org/;
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2014-10-02 00:24:27 +04:00
|
|
|
platforms = platforms.linux;
|
2008-03-07 12:33:51 +03:00
|
|
|
};
|
|
|
|
}
|