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