diff --git a/pkgs/applications/networking/sync/lsyncd/default.nix b/pkgs/by-name/ls/lsyncd/package.nix similarity index 82% rename from pkgs/applications/networking/sync/lsyncd/default.nix rename to pkgs/by-name/ls/lsyncd/package.nix index a18048f3fdcd..90c0306b15f9 100644 --- a/pkgs/applications/networking/sync/lsyncd/default.nix +++ b/pkgs/by-name/ls/lsyncd/package.nix @@ -2,10 +2,12 @@ lib, stdenv, fetchFromGitHub, + cmake, - lua, pkg-config, + rsync, + lua5_2_compat, asciidoc, libxml2, docbook_xml_dtd_45, @@ -17,14 +19,14 @@ let xnu = darwin.sourceRelease "xnu"; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "lsyncd"; version = "2.3.1"; src = fetchFromGitHub { - owner = "axkibe"; + owner = "lsyncd"; repo = "lsyncd"; - rev = "release-${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-QBmvS1HGF3VWS+5aLgDr9AmUfEsuSz+DTFIeql2XHH4="; }; @@ -34,7 +36,7 @@ stdenv.mkDerivation rec { ''; # Special flags needed on Darwin: - # https://github.com/axkibe/lsyncd/blob/42413cabbedca429d55a5378f6e830f191f3cc86/INSTALL#L51 + # https://github.com/lsyncd/lsyncd/blob/42413cabbedca429d55a5378f6e830f191f3cc86/INSTALL#L51 cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "-DWITH_INOTIFY=OFF" "-DWITH_FSEVENTS=ON" @@ -47,9 +49,10 @@ stdenv.mkDerivation rec { cmake pkg-config ]; + buildInputs = [ rsync - lua + lua5_2_compat asciidoc libxml2 docbook_xml_dtd_45 @@ -58,11 +61,11 @@ stdenv.mkDerivation rec { ]; meta = { - homepage = "https://github.com/axkibe/lsyncd"; + homepage = "https://github.com/lsyncd/lsyncd"; description = "Utility that synchronizes local directories with remote targets"; mainProgram = "lsyncd"; license = lib.licenses.gpl2Plus; platforms = lib.platforms.all; maintainers = with lib.maintainers; [ bobvanderlinden ]; }; -} +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 52e35d5ba0fa..6efbc06c786f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2583,10 +2583,6 @@ with pkgs; logstash-contrib = callPackage ../tools/misc/logstash/contrib.nix { }; - lsyncd = callPackage ../applications/networking/sync/lsyncd { - lua = lua5_2_compat; - }; - lagrange-tui = lagrange.override { enableTUI = true; }; kzipmix = pkgsi686Linux.callPackage ../tools/compression/kzipmix { };