2017-06-25 18:46:06 -07:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
|
2010-02-04 05:42:41 -08:00
|
|
|
|
2015-03-26 16:52:41 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "librsync";
|
2020-05-20 12:18:54 -07:00
|
|
|
version = "2.3.1";
|
2015-11-22 12:08:33 -08:00
|
|
|
|
2015-03-26 16:52:41 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "librsync";
|
|
|
|
repo = "librsync";
|
|
|
|
rev = "v${version}";
|
2020-05-20 12:18:54 -07:00
|
|
|
sha256 = "131cd4asmpm4nskidzgiy8xibbnpibvvbq857a0pcky77min5g4z";
|
2010-02-04 05:42:41 -08:00
|
|
|
};
|
|
|
|
|
2017-06-25 18:46:06 -07:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ perl zlib bzip2 popt ];
|
2015-11-22 12:08:33 -08:00
|
|
|
|
2018-05-10 10:08:07 -07:00
|
|
|
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
|
2012-05-25 10:52:45 -07:00
|
|
|
|
2015-03-26 16:52:41 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-08 22:04:22 -07:00
|
|
|
homepage = "http://librsync.sourceforge.net/";
|
2015-03-26 16:52:41 -07:00
|
|
|
license = licenses.lgpl2Plus;
|
2010-02-04 05:42:41 -08:00
|
|
|
description = "Implementation of the rsync remote-delta algorithm";
|
2015-03-26 16:52:41 -07:00
|
|
|
platforms = platforms.unix;
|
2010-02-04 05:42:41 -08:00
|
|
|
};
|
|
|
|
}
|