Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-16.03 31 lines 814 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 CFLAGS = "-std=gnu89"; 19 20 crossAttrs = { 21 dontStrip = true; 22 }; 23 24 meta = with stdenv.lib; { 25 homepage = http://librsync.sourceforge.net/; 26 license = licenses.lgpl2Plus; 27 description = "Implementation of the rsync remote-delta algorithm"; 28 platforms = platforms.unix; 29 maintainers = with maintainers; [ wkennington ]; 30 }; 31}