at 24.05-pre 27 lines 771 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }: 2 3stdenv.mkDerivation rec { 4 pname = "librsync"; 5 version = "2.3.4"; 6 7 src = fetchFromGitHub { 8 owner = "librsync"; 9 repo = "librsync"; 10 rev = "v${version}"; 11 sha256 = "sha256-fiOby8tOhv0KJ+ZwAWfh/ynqHlYC9kNqKfxNl3IhzR8="; 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 = "https://librsync.sourceforge.net/"; 22 changelog = "https://github.com/librsync/librsync/releases/tag/v${version}"; 23 license = licenses.lgpl2Plus; 24 mainProgram = "rdiff"; 25 platforms = platforms.unix; 26 }; 27}