summary refs log tree commit diff
path: root/pkgs/applications/networking/sync
diff options
context:
space:
mode:
authorNicolas Mattia <nicolas@nmattia.com>2021-01-24 12:22:36 +0100
committerGitHub <noreply@github.com>2021-01-24 12:22:36 +0100
commite63d0738a7e81c463342003810046c483c2ef745 (patch)
tree75f567b2f4702a7239e7762f3ea98ec7e6a7078e /pkgs/applications/networking/sync
parent31e38da7337c501c4b3cb30f291a854ef4d6aba3 (diff)
downloadnixpkgs-e63d0738a7e81c463342003810046c483c2ef745.tar
nixpkgs-e63d0738a7e81c463342003810046c483c2ef745.tar.gz
nixpkgs-e63d0738a7e81c463342003810046c483c2ef745.tar.bz2
nixpkgs-e63d0738a7e81c463342003810046c483c2ef745.tar.lz
nixpkgs-e63d0738a7e81c463342003810046c483c2ef745.tar.xz
nixpkgs-e63d0738a7e81c463342003810046c483c2ef745.tar.zst
nixpkgs-e63d0738a7e81c463342003810046c483c2ef745.zip
lsyncd: build on darwin (#109981)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications/networking/sync')
-rw-r--r--pkgs/applications/networking/sync/lsyncd/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/networking/sync/lsyncd/default.nix b/pkgs/applications/networking/sync/lsyncd/default.nix
index 2723f15dd65..4c95a35ab85 100644
--- a/pkgs/applications/networking/sync/lsyncd/default.nix
+++ b/pkgs/applications/networking/sync/lsyncd/default.nix
@@ -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 ];
   };
 }