2015-12-20 21:55:08 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, lua, pkgconfig, rsync,
|
2018-07-17 22:11:16 +02:00
|
|
|
asciidoc, libxml2, docbook_xml_dtd_45, docbook_xsl, libxslt }:
|
2015-09-21 15:55:17 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lsyncd-${version}";
|
2018-02-27 07:00:25 +01:00
|
|
|
version = "2.2.2";
|
2015-09-21 15:55:17 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "axkibe";
|
|
|
|
repo = "lsyncd";
|
|
|
|
rev = "release-${version}";
|
2018-02-27 07:00:25 +01:00
|
|
|
sha256 = "1q2ixp52r96ckghgmxdbms6xrq8dbziimp8gmgzqfq4lk1v1w80y";
|
2015-09-21 15:55:17 +02:00
|
|
|
};
|
|
|
|
|
2015-12-20 21:55:08 +01:00
|
|
|
patchPhase = ''
|
2015-09-21 15:55:17 +02:00
|
|
|
substituteInPlace default-rsync.lua \
|
2015-12-20 21:55:08 +01:00
|
|
|
--replace "/usr/bin/rsync" "${rsync}/bin/rsync"
|
2015-09-21 15:55:17 +02:00
|
|
|
'';
|
|
|
|
|
2015-12-20 21:55:08 +01:00
|
|
|
dontUseCmakeBuildDir = true;
|
2015-09-21 15:55:17 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
rsync
|
2015-12-20 21:55:08 +01:00
|
|
|
cmake lua pkgconfig
|
2018-07-17 22:11:16 +02:00
|
|
|
asciidoc libxml2 docbook_xml_dtd_45 docbook_xsl libxslt
|
2015-09-21 15:55:17 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/axkibe/lsyncd;
|
|
|
|
description = "A utility that synchronizes local directories with remote targets";
|
|
|
|
license = licenses.gpl2;
|
2016-06-14 10:46:56 +02:00
|
|
|
platforms = platforms.linux;
|
2015-09-21 15:55:17 +02:00
|
|
|
maintainers = with maintainers; [ bobvanderlinden ];
|
|
|
|
};
|
|
|
|
}
|