2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librsync";
|
2021-04-12 18:23:04 +00:00
|
|
|
version = "2.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "librsync";
|
|
|
|
repo = "librsync";
|
|
|
|
rev = "v${version}";
|
2021-04-12 18:23:04 +00:00
|
|
|
sha256 = "sha256-GNwOIZ2UjvsYIthotiPDBrabYzCGFG/YVEbwVa9Nwi4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ perl zlib bzip2 popt ];
|
|
|
|
|
|
|
|
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-05-18 14:49:53 +00:00
|
|
|
description = "Implementation of the rsync remote-delta algorithm";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://librsync.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "rdiff";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|