18 xnu = apple-sdk_11.sourceRelease "xnu";
20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
27 rev = "release-${version}";
28 hash = "sha256-QBmvS1HGF3VWS+5aLgDr9AmUfEsuSz+DTFIeql2XHH4=";
32 substituteInPlace default-rsync.lua \
33 --replace "/usr/bin/rsync" "${rsync}/bin/rsync"
36 # Special flags needed on Darwin:
37 # https://github.com/axkibe/lsyncd/blob/42413cabbedca429d55a5378f6e830f191f3cc86/INSTALL#L51
38 cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
44 dontUseCmakeBuildDir = true;
58 ] ++ lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
61 homepage = "https://github.com/axkibe/lsyncd";
62 description = "Utility that synchronizes local directories with remote targets";
63 mainProgram = "lsyncd";
64 license = licenses.gpl2Plus;
65 platforms = platforms.all;
66 maintainers = with maintainers; [ bobvanderlinden ];