2021-01-11 07:54:33 +00:00
|
|
|
{
|
|
|
|
fetchurl,
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
perl,
|
|
|
|
openssh,
|
|
|
|
rsync,
|
|
|
|
logger,
|
|
|
|
}:
|
2008-03-07 09:33:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 19:47:47 +00:00
|
|
|
pname = "rsnapshot";
|
2023-01-16 09:55:43 +00:00
|
|
|
version = "1.4.5";
|
2015-12-02 16:31:25 +00:00
|
|
|
|
2008-03-07 09:33:51 +00:00
|
|
|
src = fetchurl {
|
2021-08-12 19:47:47 +00:00
|
|
|
url = "https://rsnapshot.org/downloads/rsnapshot-${version}.tar.gz";
|
2023-01-16 09:55:43 +00:00
|
|
|
sha256 = "sha256-ELdeAcolUR6CZqrNSVUxl1rRqK1VYha2pXx20CizgkI=";
|
2008-03-07 09:33:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
perl
|
|
|
|
openssh
|
|
|
|
rsync
|
|
|
|
logger
|
|
|
|
];
|
|
|
|
|
2016-05-11 23:19:16 +00:00
|
|
|
configureFlags = [ "--sysconfdir=/etc --prefix=/" ];
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
2008-03-07 09:33:51 +00:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace "Makefile.in" --replace \
|
|
|
|
"/usr/bin/pod2man" "${perl}/bin/pod2man"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Filesystem snapshot utility for making backups of local and remote systems";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://rsnapshot.org/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2014-10-01 20:24:27 +00:00
|
|
|
platforms = platforms.linux;
|
2008-03-07 09:33:51 +00:00
|
|
|
};
|
|
|
|
}
|