2015-03-27 02:52:41 +03:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, perl, zlib, bzip2, popt }:
|
2010-02-04 16:42:41 +03:00
|
|
|
|
2015-03-27 02:52:41 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "librsync-${version}";
|
|
|
|
version = "1.0.0";
|
2015-11-22 23:08:33 +03:00
|
|
|
|
2015-03-27 02:52:41 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "librsync";
|
|
|
|
repo = "librsync";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0rc2pksdd0mhdvk8y1yix71rf19wdx1lb2ryrkhi7vcy240rvgvc";
|
2010-02-04 16:42:41 +03:00
|
|
|
};
|
|
|
|
|
2015-03-27 02:52:41 +03:00
|
|
|
buildInputs = [ autoreconfHook perl zlib bzip2 popt ];
|
|
|
|
|
2011-12-11 02:14:08 +04:00
|
|
|
configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";
|
2010-02-04 16:42:41 +03:00
|
|
|
|
2015-11-22 23:08:33 +03:00
|
|
|
CFLAGS = "-std=gnu89";
|
|
|
|
|
2012-05-25 21:52:45 +04:00
|
|
|
crossAttrs = {
|
|
|
|
dontStrip = true;
|
|
|
|
};
|
|
|
|
|
2015-03-27 02:52:41 +03:00
|
|
|
meta = with stdenv.lib; {
|
2010-02-04 16:42:41 +03:00
|
|
|
homepage = http://librsync.sourceforge.net/;
|
2015-03-27 02:52:41 +03:00
|
|
|
license = licenses.lgpl2Plus;
|
2010-02-04 16:42:41 +03:00
|
|
|
description = "Implementation of the rsync remote-delta algorithm";
|
2015-03-27 02:52:41 +03:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2010-02-04 16:42:41 +03:00
|
|
|
};
|
|
|
|
}
|