@@ -8,16 +8,18 @@
88
99rustPlatform.buildRustPackage rec {
1010 pname = "texlab";
11− version = "2.2.2";
11+ version = "3.0.0";
1212
1313 src = fetchFromGitHub {
1414 owner = "latex-lsp";
1515 repo = pname;
1616 rev = "v${version}";
17− sha256 = "06x7j4ppgw24xbsnyj1icaksngqbvq6mk8wfcqikzmvmifjspx9m";
17+ hash = "sha256-jOxneMqeyvMQWKPNha59H6qWSFmx+Z71SU2+M5VWMsA=";
1818 };
1919
20− cargoSha256 = "0gzxylpn2hps0kxczd6wwcqhnvm6ir971bfvpgjr6rxi12hs47ky";
20+ cargoHash = "sha256-H6czxSTw93RNTaN0OJyv0RfwmGAiFkpDgUtXHCD+jrY=";
21+
22+ outputs = [ "out" "man" ];
2123
2224 nativeBuildInputs = [ installShellFiles ];
2325
@@ -25,7 +27,14 @@ rustPlatform.buildRustPackage rec {
2527
2628 postInstall = ''
2729 installManPage texlab.1
28− '';
30+
31+ # Remove generated dylib of html2md dependency. TexLab statically
32+ # links to the generated rlib and doesn't reference the dylib. I
33+ # couldn't find any way to prevent building this by passing cargo flags.
34+ # See https://gitlab.com/Kanedias/html2md/-/blob/0.2.10/Cargo.toml#L20
35+ rm "$out/lib/libhtml2md.so"
36+ rmdir "$out/lib"
37+ '';
2938
3039 meta = with lib; {
3140 description = "An implementation of the Language Server Protocol for LaTeX";