summary refs log tree commit diff
path: root/pkgs/development/tools/misc/texlab/default.nix
blob: 1e8b3b2cbab28d5466f6577fb6fae8f5cf78e48b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv
, rustPlatform
, fetchFromGitHub
, nodejs
, Security
}:

rustPlatform.buildRustPackage rec {
  pname = "texlab";
  version = "1.9.0";

  src = fetchFromGitHub {
    owner = "latex-lsp";
    repo = pname;
    # 1.9.0 + patches for building citeproc-db, see https://github.com/latex-lsp/texlab/pull/137
    rev = "e38fe4bedc9d8094649a9d2753ca9855e0c18882";
    sha256 = "0j87gmzyqrpgxrgalvlfqj5cj8j0h23hbbv8vdz2dhc847xhhfq1";
  };

  cargoSha256 = "09d9r7aal1q00idv08zdw7dygyasyp5l6jrh96cdclf63h1p4fk9";

  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];

  meta = with stdenv.lib; {
    description = "An implementation of the Language Server Protocol for LaTeX";
    homepage = https://texlab.netlify.com/;
    license = licenses.mit;
    maintainers = with maintainers; [ doronbehar metadark ];
    platforms = platforms.all;
  };
}