at v192 29 lines 790 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, perl, zlib, bzip2, popt }: 2 3stdenv.mkDerivation rec { 4 name = "librsync-${version}"; 5 version = "1.0.0"; 6 7 src = fetchFromGitHub { 8 owner = "librsync"; 9 repo = "librsync"; 10 rev = "v${version}"; 11 sha256 = "0rc2pksdd0mhdvk8y1yix71rf19wdx1lb2ryrkhi7vcy240rvgvc"; 12 }; 13 14 buildInputs = [ autoreconfHook perl zlib bzip2 popt ]; 15 16 configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared"; 17 18 crossAttrs = { 19 dontStrip = true; 20 }; 21 22 meta = with stdenv.lib; { 23 homepage = http://librsync.sourceforge.net/; 24 license = licenses.lgpl2Plus; 25 description = "Implementation of the rsync remote-delta algorithm"; 26 platforms = platforms.unix; 27 maintainers = with maintainers; [ wkennington ]; 28 }; 29}