lsyncd: build on darwin (#109981)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
31e38da733
commit
e63d0738a7
|
@ -25,6 +25,10 @@ stdenv.mkDerivation rec {
|
||||||
--replace "/usr/bin/rsync" "${rsync}/bin/rsync"
|
--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;
|
dontUseCmakeBuildDir = true;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -36,8 +40,8 @@ stdenv.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/axkibe/lsyncd";
|
homepage = "https://github.com/axkibe/lsyncd";
|
||||||
description = "A utility that synchronizes local directories with remote targets";
|
description = "A utility that synchronizes local directories with remote targets";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ bobvanderlinden ];
|
maintainers = with maintainers; [ bobvanderlinden ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue