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