blob: ff65d94fc11f9035e4f283f630a47f51ebd0ac35 (
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
|
{ fetchurl, lib, stdenv, perl, openssh, rsync, logger }:
stdenv.mkDerivation rec {
pname = "rsnapshot";
version = "1.4.5";
src = fetchurl {
url = "https://rsnapshot.org/downloads/rsnapshot-${version}.tar.gz";
sha256 = "sha256-ELdeAcolUR6CZqrNSVUxl1rRqK1VYha2pXx20CizgkI=";
};
propagatedBuildInputs = [perl openssh rsync logger];
configureFlags = [ "--sysconfdir=/etc --prefix=/" ];
makeFlags = [ "DESTDIR=$(out)" ];
patchPhase = ''
substituteInPlace "Makefile.in" --replace \
"/usr/bin/pod2man" "${perl}/bin/pod2man"
'';
meta = with lib; {
description = "Filesystem snapshot utility for making backups of local and remote systems";
homepage = "https://rsnapshot.org/";
license = lib.licenses.gpl2Plus;
platforms = platforms.linux;
};
}
|