nixpkgs/pkgs/development/libraries/librsync/default.nix

32 lines
814 B
Nix
Raw Normal View History

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