Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ fetchurl, lib, stdenv, perl, openssh, rsync, logger }: 2 3stdenv.mkDerivation rec { 4 pname = "rsnapshot"; 5 version = "1.4.5"; 6 7 src = fetchurl { 8 url = "https://rsnapshot.org/downloads/rsnapshot-${version}.tar.gz"; 9 sha256 = "sha256-ELdeAcolUR6CZqrNSVUxl1rRqK1VYha2pXx20CizgkI="; 10 }; 11 12 propagatedBuildInputs = [perl openssh rsync logger]; 13 14 configureFlags = [ "--sysconfdir=/etc --prefix=/" ]; 15 makeFlags = [ "DESTDIR=$(out)" ]; 16 17 patchPhase = '' 18 substituteInPlace "Makefile.in" --replace \ 19 "/usr/bin/pod2man" "${perl}/bin/pod2man" 20 ''; 21 22 meta = with lib; { 23 description = "A filesystem snapshot utility for making backups of local and remote systems"; 24 homepage = "https://rsnapshot.org/"; 25 license = lib.licenses.gpl2Plus; 26 platforms = platforms.linux; 27 }; 28}