1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/backup/rsnapshot/default.nix

28 lines
777 B
Nix
Raw Normal View History

{ fetchurl, stdenv, perl, openssh, rsync, logger }:
stdenv.mkDerivation rec {
2016-05-15 12:19:00 +01:00
name = "rsnapshot-1.4.2";
2015-12-02 16:31:25 +00:00
src = fetchurl {
2015-12-02 16:31:25 +00:00
url = "http://rsnapshot.org/downloads/${name}.tar.gz";
2016-05-15 12:19:00 +01:00
sha256 = "05jfy99a0xs6lvsjfp3wz21z0myqhmwl2grn3jr9clijbg282ah4";
};
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 21:24:27 +01:00
meta = with stdenv.lib; {
description = "A filesystem snapshot utility for making backups of local and remote systems";
homepage = http://rsnapshot.org/;
license = stdenv.lib.licenses.gpl2Plus;
2014-10-01 21:24:27 +01:00
platforms = platforms.linux;
};
}