nixpkgs/pkgs/development/libraries/librsync/default.nix
2021-04-11 11:03:34 +00:00

26 lines
662 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, perl, zlib, bzip2, popt }:
stdenv.mkDerivation rec {
pname = "librsync";
version = "2.3.2";
src = fetchFromGitHub {
owner = "librsync";
repo = "librsync";
rev = "v${version}";
sha256 = "sha256-GNwOIZ2UjvsYIthotiPDBrabYzCGFG/YVEbwVa9Nwi4=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ perl zlib bzip2 popt ];
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
meta = with lib; {
homepage = "http://librsync.sourceforge.net/";
license = licenses.lgpl2Plus;
description = "Implementation of the rsync remote-delta algorithm";
platforms = platforms.unix;
};
}