summary refs log tree commit diff
path: root/pkgs/development/libraries/librsync/default.nix
blob: 2e3df7cf9e05fadf9a13ae9cbe30a85f0e94f1f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchFromGitHub, autoreconfHook, perl, zlib, bzip2, popt }:

stdenv.mkDerivation rec {
  name = "librsync-${version}";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "librsync";
    repo = "librsync";
    rev = "v${version}";
    sha256 = "0rc2pksdd0mhdvk8y1yix71rf19wdx1lb2ryrkhi7vcy240rvgvc";
  };

  buildInputs = [ autoreconfHook perl zlib bzip2 popt ];

  configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";

  CFLAGS = "-std=gnu89";

  crossAttrs = {
    dontStrip = true;
  };

  meta = with stdenv.lib; {
    homepage = http://librsync.sourceforge.net/;
    license = licenses.lgpl2Plus;
    description = "Implementation of the rsync remote-delta algorithm";
    platforms = platforms.unix;
    maintainers = with maintainers; [ wkennington ];
  };
}