diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/language-servers/typst-lsp/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/language-servers/typst-lsp/default.nix | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/development/tools/language-servers/typst-lsp/default.nix b/nixpkgs/pkgs/development/tools/language-servers/typst-lsp/default.nix index 04c048a956c2..e6f20062d39f 100644 --- a/nixpkgs/pkgs/development/tools/language-servers/typst-lsp/default.nix +++ b/nixpkgs/pkgs/development/tools/language-servers/typst-lsp/default.nix @@ -1,36 +1,42 @@ { lib , rustPlatform , fetchFromGitHub +, stdenv +, darwin }: rustPlatform.buildRustPackage rec { pname = "typst-lsp"; - version = "0.7.2"; + version = "0.9.4"; src = fetchFromGitHub { owner = "nvarner"; - repo = pname; + repo = "typst-lsp"; rev = "v${version}"; - hash = "sha256-z6IG0qJXzwisazR/tLq6dwsZzgzhYKh/NnKmnYySS18="; + hash = "sha256-qbmNZFXg+XaDkHdBA3dU0ICKovEQrl7AAcMkElMLbMA="; }; cargoLock = { lockFile = ./Cargo.lock; outputHashes = { - "elsa-1.8.1" = "sha256-/85IriplPxx24TE/CsvjIsve100QUZiVqS0TWgPFRbw="; - "svg2pdf-0.5.0" = "sha256-v/ARFI+Uw5KtLe2F3ty9u3uKkWSradRmLnD2VJ+jmSI="; - "typst-0.5.0" = "sha256-obUe9OVQ8M7MORudQGN7zaYjUv4zjeh7XidHHmUibTA="; + "typst-0.7.0" = "sha256-yrtOmlFAKOqAmhCP7n0HQCOQpU3DWyms5foCdUb9QTg="; }; }; - patches = [ - # typst-library tries to access the workspace with include_bytes, which - # fails when it is vendored as its own separate crate - # this patch moves the required assets into the crate and fixes the issue - # see https://github.com/typst/typst/pull/1515 - ./move-typst-assets.patch + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security ]; + checkFlags = [ + # requires internet access + "--skip=workspace::package::external::remote_repo::test::full_download" + ]; + + # workspace::package::external::manager::test::local_package tries to access the data directory + preCheck = '' + export HOME=$(mktemp -d) + ''; + meta = with lib; { description = "A brand-new language server for Typst"; homepage = "https://github.com/nvarner/typst-lsp"; |