diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/sync/lsyncd/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/sync/lsyncd/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/applications/networking/sync/lsyncd/default.nix b/nixpkgs/pkgs/applications/networking/sync/lsyncd/default.nix index 9573e1717de9..4c95a35ab85a 100644 --- a/nixpkgs/pkgs/applications/networking/sync/lsyncd/default.nix +++ b/nixpkgs/pkgs/applications/networking/sync/lsyncd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, fetchpatch, cmake, lua, pkgconfig, rsync, +{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, lua, pkg-config, rsync, asciidoc, libxml2, docbook_xml_dtd_45, docbook_xsl, libxslt }: stdenv.mkDerivation rec { @@ -25,19 +25,23 @@ 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 = [ rsync - cmake lua pkgconfig + cmake lua pkg-config asciidoc libxml2 docbook_xml_dtd_45 docbook_xsl libxslt ]; - meta = with stdenv.lib; { + 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 ]; }; } |