Unverified Commit 144db672 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

texlab: 5.19.0 -> 5.20.0 (#347995)

parents c9a3c892 df6592da
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -15,16 +15,21 @@ let
in
rustPlatform.buildRustPackage rec {
  pname = "texlab";
  version = "5.19.0";
  version = "5.20.0";

  src = fetchFromGitHub {
    owner = "latex-lsp";
    repo = "texlab";
    rev = "refs/tags/v${version}";
    hash = "sha256-iH7KqZddP4uKwTBxLLMURUtWBsuEtLHGQppVgGFaWZQ=";
    hash = "sha256-hKQdc9p69L0t2MwCR4Fy20Nl+2qQk5JJoCaB4O43DNY=";
  };

  cargoHash = "sha256-QW+q869bVAMYv4SCj/2eKrADoDonrvQuaHuanZHIjMo=";
  cargoHash = "sha256-A/stdJ1baV0hdDXTdLd9gi8+JO7qPgQbNiYjHkp1GPQ=";

  # https://github.com/latex-lsp/texlab/pull/1237
  preBuild = ''
    rm .cargo/config.toml
  '';

  outputs = [ "out" ] ++ lib.optional (!isCross) "man";

@@ -41,7 +46,7 @@ rustPlatform.buildRustPackage rec {
  # generate the man page
  postInstall = lib.optionalString (!isCross) ''
    # TexLab builds man page separately in CI:
    # https://github.com/latex-lsp/texlab/blob/v5.16.1/.github/workflows/publish.yml#L117-L121
    # https://github.com/latex-lsp/texlab/blob/v5.20.0/.github/workflows/publish.yml#L110-L114
    help2man --no-info "$out/bin/texlab" > texlab.1
    installManPage texlab.1
  '';