mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 00:22:13 +00:00
28 lines
788 B
Nix
28 lines
788 B
Nix
{ fetchurl, stdenv, writeText, perl, openssh, rsync, logger }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rsnapshot-1.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://rsnapshot.org/downloads/${name}.tar.gz";
|
|
sha256 = "1s28wkpqajgmwi88n3xs3qsa4b7yxd6lkl4zfi0mr06klwli2jpv";
|
|
};
|
|
|
|
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 stdenv.lib; {
|
|
description = "A filesystem snapshot utility for making backups of local and remote systems";
|
|
homepage = http://rsnapshot.org/;
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|