blob: 480c7cfd556129ac16a995750d9877e5ece172b5 (
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
32
33
34
35
36
|
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, installShellFiles
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "texlab";
version = "2.2.2";
src = fetchFromGitHub {
owner = "latex-lsp";
repo = pname;
rev = "v${version}";
sha256 = "06x7j4ppgw24xbsnyj1icaksngqbvq6mk8wfcqikzmvmifjspx9m";
};
cargoSha256 = "0gzxylpn2hps0kxczd6wwcqhnvm6ir971bfvpgjr6rxi12hs47ky";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
postInstall = ''
installManPage texlab.1
'';
meta = with lib; {
description = "An implementation of the Language Server Protocol for LaTeX";
homepage = "https://texlab.netlify.app";
license = licenses.mit;
maintainers = with maintainers; [ doronbehar metadark ];
};
}
|