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

37 lines
847 B
Nix
Raw Normal View History

2019-09-03 01:45:26 +01:00
{ stdenv
, 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";
2020-05-27 22:35:18 +01:00
version = "2.2.0";
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}";
2020-05-27 22:35:18 +01:00
sha256 = "0iydkbmx9z7xpwaif0han5jvy9xh1afmfyldl7fcyy4r906dsmhx";
2019-09-03 01:45:26 +01:00
};
2020-05-27 22:35:18 +01:00
cargoSha256 = "0iibjh2ll181j69vld1awvjgyv3xwmq0abh10651la4k4jpppx46";
2019-09-03 01:45:26 +01:00
2020-05-28 00:18:18 +01:00
nativeBuildInputs = [ installShellFiles ];
2019-09-03 01:45:26 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
2020-05-28 00:18:18 +01:00
postInstall = ''
installManPage texlab.1
'';
2019-09-03 01:45:26 +01:00
meta = with stdenv.lib; {
description = "An implementation of the Language Server Protocol for LaTeX";
homepage = "https://texlab.netlify.com/";
2019-09-03 01:45:26 +01:00
license = licenses.mit;
maintainers = with maintainers; [ doronbehar metadark ];
platforms = platforms.all;
};
}