nixpkgs/pkgs/tools/backup/rsnapshot/default.nix

28 lines
779 B
Nix
Raw Normal View History

{ fetchurl, stdenv, perl, openssh, rsync, logger }:
stdenv.mkDerivation rec {
2019-12-24 15:03:18 +00:00
name = "rsnapshot-1.4.3";
2015-12-02 16:31:25 +00:00
src = fetchurl {
url = "https://rsnapshot.org/downloads/${name}.tar.gz";
2019-12-24 15:03:18 +00:00
sha256 = "1lavqmmsf53pim0nvming7fkng6p0nk2a51k2c2jdq0l7snpl31b";
};
propagatedBuildInputs = [perl openssh rsync logger];
configureFlags = [ "--sysconfdir=/etc --prefix=/" ];
makeFlags = [ "DESTDIR=$(out)" ];
patchPhase = ''
substituteInPlace "Makefile.in" --replace \
"/usr/bin/pod2man" "${perl}/bin/pod2man"
'';
2014-10-01 20:24:27 +00:00
meta = with stdenv.lib; {
description = "A filesystem snapshot utility for making backups of local and remote systems";
homepage = https://rsnapshot.org/;
license = stdenv.lib.licenses.gpl2Plus;
2014-10-01 20:24:27 +00:00
platforms = platforms.linux;
};
}