nixpkgs/pkgs/development/tools/misc/texlab/default.nix

37 lines
807 B
Nix
Raw Normal View History

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