Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 25 lines 673 B view raw
1{ stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }: 2 3stdenv.mkDerivation rec { 4 name = "librsync-${version}"; 5 version = "2.0.2"; 6 7 src = fetchFromGitHub { 8 owner = "librsync"; 9 repo = "librsync"; 10 rev = "v${version}"; 11 sha256 = "1qnr4rk93mhggqjh2025clmlhhgnjhq983p1vbh8i1g8aiqdnapi"; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ perl zlib bzip2 popt ]; 16 17 dontStrip = stdenv.hostPlatform != stdenv.buildPlatform; 18 19 meta = with stdenv.lib; { 20 homepage = http://librsync.sourceforge.net/; 21 license = licenses.lgpl2Plus; 22 description = "Implementation of the rsync remote-delta algorithm"; 23 platforms = platforms.unix; 24 }; 25}