forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, lua, pkgconfig, rsync,
|
|
asciidoc, libxml2, docbook_xml_dtd_45, docbook_xsl, libxslt }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lsyncd";
|
|
version = "2.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "axkibe";
|
|
repo = "lsyncd";
|
|
rev = "release-${version}";
|
|
sha256 = "1hbsih5hfq9lhgnxm0wb5mrj6xmlk2l0i9a79wzd5f6cnjil9l3x";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
sha256 = "0b0h2qxh73l502p7phf6qgl8576nf6fvqqp2x5wy3nz7sc9qb1z8";
|
|
name = "fix-non-versioned-lua-not-search-in-cmake.patch";
|
|
url = "https://github.com/axkibe/lsyncd/pull/500/commits/0af99d8d5ba35118e8799684a2d4a8ea4b0c6957.patch";
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace default-rsync.lua \
|
|
--replace "/usr/bin/rsync" "${rsync}/bin/rsync"
|
|
'';
|
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
buildInputs = [
|
|
rsync
|
|
cmake lua pkgconfig
|
|
asciidoc libxml2 docbook_xml_dtd_45 docbook_xsl libxslt
|
|
];
|
|
|
|
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;
|
|
maintainers = with maintainers; [ bobvanderlinden ];
|
|
};
|
|
}
|