lysncd: migrate to by-name

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij
2026-05-30 15:58:56 +05:30
parent c99417ee25
commit f7b5010a15
2 changed files with 11 additions and 12 deletions
@@ -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 ];
};
}
})
-4
View File
@@ -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 { };