1 { lib, stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-fiOby8tOhv0KJ+ZwAWfh/ynqHlYC9kNqKfxNl3IhzR8=";
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ perl zlib bzip2 popt ];
17 dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
20 description = "Implementation of the rsync remote-delta algorithm";
21 homepage = "https://librsync.sourceforge.net/";
22 changelog = "https://github.com/librsync/librsync/releases/tag/v${version}";
23 license = licenses.lgpl2Plus;
24 mainProgram = "rdiff";
25 platforms = platforms.unix;