git.iko.soy/typeable/nixpkgs
on master help sign in
lsyncd: build on darwin (#109981)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

commite63d0738a7e81c463342003810046c483c2ef745 authorNicolas Mattia <nicolas@nmattia.com> dateSun 24 Jan 2021, 12:22 (6 years ago) parent31e38da
1 file changed+6−2
pkgs/applications/networking/sync/lsyncd/default.nix+6−2
pkgs/applications/networking/sync/lsyncd/default.nix+6−2
@@ -25,6 +25,10 @@ stdenv.mkDerivation rec {
2525 --replace "/usr/bin/rsync" "${rsync}/bin/rsync"
2626 '';
2727
28+ # Special flags needed on Darwin:
29+ # https://github.com/axkibe/lsyncd/blob/42413cabbedca429d55a5378f6e830f191f3cc86/INSTALL#L51
30+ cmakeFlags = lib.optional stdenv.isDarwin [ "-DWITH_INOTIFY=OFF" "-DWITH_FSEVENTS=ON" ];
31+
2832 dontUseCmakeBuildDir = true;
2933
3034 buildInputs = [
@@ -36,8 +40,8 @@ stdenv.mkDerivation rec {
3640 meta = with lib; {
3741 homepage = "https://github.com/axkibe/lsyncd";
3842 description = "A utility that synchronizes local directories with remote targets";
39− license = licenses.gpl2;
40− platforms = platforms.linux;
43+ license = licenses.gpl2Plus;
44+ platforms = platforms.all;
4145 maintainers = with maintainers; [ bobvanderlinden ];
4246 };
4347}