2021-01-07 16:09:48 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-09-03 01:45:26 +01:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2020-05-28 00:18:18 +01:00
|
|
|
, installShellFiles
|
2019-09-03 01:45:26 +01:00
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "texlab";
|
2021-01-10 16:55:02 +00:00
|
|
|
version = "2.2.2";
|
2019-09-03 01:45:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "latex-lsp";
|
|
|
|
repo = pname;
|
2020-02-14 03:35:02 +00:00
|
|
|
rev = "v${version}";
|
2021-01-10 16:55:02 +00:00
|
|
|
sha256 = "06x7j4ppgw24xbsnyj1icaksngqbvq6mk8wfcqikzmvmifjspx9m";
|
2019-09-03 01:45:26 +01:00
|
|
|
};
|
|
|
|
|
2021-01-10 16:55:02 +00:00
|
|
|
cargoSha256 = "0gzxylpn2hps0kxczd6wwcqhnvm6ir971bfvpgjr6rxi12hs47ky";
|
2019-09-03 01:45:26 +01:00
|
|
|
|
2020-05-28 00:18:18 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-01-07 16:09:48 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2019-09-03 01:45:26 +01:00
|
|
|
|
2020-05-28 00:18:18 +01:00
|
|
|
postInstall = ''
|
|
|
|
installManPage texlab.1
|
|
|
|
'';
|
|
|
|
|
2021-01-07 16:09:48 +00:00
|
|
|
meta = with lib; {
|
2019-09-03 01:45:26 +01:00
|
|
|
description = "An implementation of the Language Server Protocol for LaTeX";
|
2021-01-07 16:09:48 +00:00
|
|
|
homepage = "https://texlab.netlify.app";
|
2019-09-03 01:45:26 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar metadark ];
|
|
|
|
};
|
|
|
|
}
|