at 23.05-pre 26 lines 689 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }: 2 3stdenv.mkDerivation rec { 4 pname = "librsync"; 5 version = "2.3.2"; 6 7 src = fetchFromGitHub { 8 owner = "librsync"; 9 repo = "librsync"; 10 rev = "v${version}"; 11 sha256 = "sha256-GNwOIZ2UjvsYIthotiPDBrabYzCGFG/YVEbwVa9Nwi4="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ perl zlib bzip2 popt ]; 16 17 dontStrip = stdenv.hostPlatform != stdenv.buildPlatform; 18 19 meta = with lib; { 20 description = "Implementation of the rsync remote-delta algorithm"; 21 homepage = "http://librsync.sourceforge.net/"; 22 license = licenses.lgpl2Plus; 23 mainProgram = "rdiff"; 24 platforms = platforms.unix; 25 }; 26}