depot/third_party/nixpkgs/pkgs/tools/backup/rsnapshot/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

28 lines
800 B
Nix

{ fetchurl, lib, stdenv, perl, openssh, rsync, logger }:
stdenv.mkDerivation rec {
pname = "rsnapshot";
version = "1.4.4";
src = fetchurl {
url = "https://rsnapshot.org/downloads/rsnapshot-${version}.tar.gz";
sha256 = "sha256-wct8t0jFqWVsOGNivfbCZ5WXN3JKu1Bfv56UCp2YhXk=";
};
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 = "A filesystem snapshot utility for making backups of local and remote systems";
homepage = "https://rsnapshot.org/";
license = lib.licenses.gpl2Plus;
platforms = platforms.linux;
};
}