diff --git a/pkgs/tools/backup/rsnapshot/default.nix b/pkgs/tools/backup/rsnapshot/default.nix new file mode 100644 index 000000000000..c79be7cffb45 --- /dev/null +++ b/pkgs/tools/backup/rsnapshot/default.nix @@ -0,0 +1,23 @@ +{fetchurl, stdenv, perl, openssh, rsync, logger}: + +stdenv.mkDerivation rec { + name = "rsnapshot-1.3.0"; + src = fetchurl { + url = "mirrors://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 = ''rsnapshot is a filesystem snapshot utility for making + backups of local and remote systems.''; + homepage = http://rsnapshot.org/; + license = "GPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c046a8b202a7..ec4799d208bf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -855,6 +855,14 @@ rec { }; */ + rsnapshot = import ../tools/backup/rsnapshot { + inherit fetchurl stdenv perl openssh rsync; + + # For the `logger' command, we can use either `utillinux' or + # GNU Inetutils. The latter is more portable. + logger = inetutils; + }; + rlwrapFun = lib.sumArgs (selectVersion ../tools/misc/rlwrap "0.28") { inherit builderDefs readline; };