lsyncd: build on darwin (#109981)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Nicolas Mattia 2021-01-24 12:22:36 +01:00 committed by GitHub
parent 31e38da733
commit e63d0738a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,10 @@ stdenv.mkDerivation rec {
--replace "/usr/bin/rsync" "${rsync}/bin/rsync"
'';
# Special flags needed on Darwin:
# https://github.com/axkibe/lsyncd/blob/42413cabbedca429d55a5378f6e830f191f3cc86/INSTALL#L51
cmakeFlags = lib.optional stdenv.isDarwin [ "-DWITH_INOTIFY=OFF" "-DWITH_FSEVENTS=ON" ];
dontUseCmakeBuildDir = true;
buildInputs = [
@ -36,8 +40,8 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://github.com/axkibe/lsyncd";
description = "A utility that synchronizes local directories with remote targets";
license = licenses.gpl2;
platforms = platforms.linux;
license = licenses.gpl2Plus;
platforms = platforms.all;
maintainers = with maintainers; [ bobvanderlinden ];
};
}