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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
800 B
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, perl, openssh, rsync, logger }:
stdenv.mkDerivation rec {
2021-08-12 19:47:47 +00:00
pname = "rsnapshot";
2021-09-14 08:32:14 +00:00
version = "1.4.4";
2015-12-02 16:31:25 +00:00
src = fetchurl {
2021-08-12 19:47:47 +00:00
url = "https://rsnapshot.org/downloads/rsnapshot-${version}.tar.gz";
2021-09-14 08:32:14 +00:00
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/";
2021-01-15 09:19:50 +00:00
license = lib.licenses.gpl2Plus;
2014-10-01 20:24:27 +00:00
platforms = platforms.linux;
};
}