nixpkgs/pkgs/applications/networking/sync/lsyncd/default.nix

36 lines
948 B
Nix
Raw Normal View History

2015-12-20 20:55:08 +00:00
{ stdenv, fetchFromGitHub, cmake, lua, pkgconfig, rsync,
2015-09-21 13:55:17 +00:00
asciidoc, libxml2, docbook_xml_dtd_45, docbook_xml_xslt, libxslt }:
stdenv.mkDerivation rec {
name = "lsyncd-${version}";
2015-12-20 20:55:08 +00:00
version = "2.1.6";
2015-09-21 13:55:17 +00:00
src = fetchFromGitHub {
owner = "axkibe";
repo = "lsyncd";
rev = "release-${version}";
2015-12-20 20:55:08 +00:00
sha256 = "1cab96h4qfyapk7lb682j1d8k0hpv7h9pl41vdgc0vr4bq4c3ij2";
2015-09-21 13:55:17 +00:00
};
2015-12-20 20:55:08 +00:00
patchPhase = ''
2015-09-21 13:55:17 +00:00
substituteInPlace default-rsync.lua \
2015-12-20 20:55:08 +00:00
--replace "/usr/bin/rsync" "${rsync}/bin/rsync"
2015-09-21 13:55:17 +00:00
'';
2015-12-20 20:55:08 +00:00
dontUseCmakeBuildDir = true;
2015-09-21 13:55:17 +00:00
buildInputs = [
rsync
2015-12-20 20:55:08 +00:00
cmake lua pkgconfig
2015-09-21 13:55:17 +00:00
asciidoc libxml2 docbook_xml_dtd_45 docbook_xml_xslt libxslt
];
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 08:46:56 +00:00
platforms = platforms.linux;
2015-09-21 13:55:17 +00:00
maintainers = with maintainers; [ bobvanderlinden ];
};
}