2018-08-08 23:09:53 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, cmake, lua, pkgconfig, rsync,
|
2018-07-17 21:11:16 +01:00
|
|
|
asciidoc, libxml2, docbook_xml_dtd_45, docbook_xsl, libxslt }:
|
2015-09-21 14:55:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lsyncd";
|
2018-08-08 23:09:53 +01:00
|
|
|
version = "2.2.3";
|
2015-09-21 14:55:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "axkibe";
|
|
|
|
repo = "lsyncd";
|
|
|
|
rev = "release-${version}";
|
2018-08-08 23:09:53 +01:00
|
|
|
sha256 = "1hbsih5hfq9lhgnxm0wb5mrj6xmlk2l0i9a79wzd5f6cnjil9l3x";
|
2015-09-21 14:55:17 +01:00
|
|
|
};
|
|
|
|
|
2018-08-08 23:09:53 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
sha256 = "0b0h2qxh73l502p7phf6qgl8576nf6fvqqp2x5wy3nz7sc9qb1z8";
|
|
|
|
name = "fix-non-versioned-lua-not-search-in-cmake.patch";
|
|
|
|
url = "https://github.com/axkibe/lsyncd/pull/500/commits/0af99d8d5ba35118e8799684a2d4a8ea4b0c6957.patch";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2015-09-21 14:55:17 +01:00
|
|
|
substituteInPlace default-rsync.lua \
|
2015-12-20 20:55:08 +00:00
|
|
|
--replace "/usr/bin/rsync" "${rsync}/bin/rsync"
|
2015-09-21 14:55:17 +01:00
|
|
|
'';
|
|
|
|
|
2015-12-20 20:55:08 +00:00
|
|
|
dontUseCmakeBuildDir = true;
|
2015-09-21 14:55:17 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
rsync
|
2015-12-20 20:55:08 +00:00
|
|
|
cmake lua pkgconfig
|
2018-07-17 21:11:16 +01:00
|
|
|
asciidoc libxml2 docbook_xml_dtd_45 docbook_xsl libxslt
|
2015-09-21 14:55:17 +01: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 09:46:56 +01:00
|
|
|
platforms = platforms.linux;
|
2015-09-21 14:55:17 +01:00
|
|
|
maintainers = with maintainers; [ bobvanderlinden ];
|
|
|
|
};
|
|
|
|
}
|