1{ stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
2
3stdenv.mkDerivation rec {
4 name = "librsync-${version}";
5 version = "2.0.1";
6
7 src = fetchFromGitHub {
8 owner = "librsync";
9 repo = "librsync";
10 rev = "v${version}";
11 sha256 = "0wihjinqbjl4hnvrgsk4ca1zy5v6bj7vjm6wlygwvgbn5yh3yq0x";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ perl zlib bzip2 popt ];
16
17 crossAttrs = {
18 dontStrip = true;
19 };
20
21 meta = with stdenv.lib; {
22 homepage = http://librsync.sourceforge.net/;
23 license = licenses.lgpl2Plus;
24 description = "Implementation of the rsync remote-delta algorithm";
25 platforms = platforms.unix;
26 maintainers = with maintainers; [ wkennington ];
27 };
28}