typst-lsp, vscode-extensions.nvarner.typst-lsp: remove (#376698)
This commit is contained in:
@@ -3907,8 +3907,6 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
nvarner.typst-lsp = callPackage ./nvarner.typst-lsp { };
|
||||
|
||||
ocamllabs.ocaml-platform = buildVscodeMarketplaceExtension {
|
||||
meta = {
|
||||
changelog = "https://marketplace.visualstudio.com/items/ocamllabs.ocaml-platform/changelog";
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
{
|
||||
jq,
|
||||
lib,
|
||||
moreutils,
|
||||
typst-lsp,
|
||||
vscode-utils,
|
||||
}:
|
||||
|
||||
vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "typst-lsp";
|
||||
publisher = "nvarner";
|
||||
# Please update the corresponding binary (typst-lsp) when updating
|
||||
# this extension.
|
||||
version = "0.13.0";
|
||||
hash = "sha256-xiFUJymZOTEqlGvCHvLiI0pVg7NLgIXhZ7x8yx+a5mY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
jq
|
||||
moreutils
|
||||
];
|
||||
|
||||
buildInputs = [ typst-lsp ];
|
||||
|
||||
postInstall = ''
|
||||
cd "$out/$installPrefix"
|
||||
jq '.contributes.configuration.properties."typst-lsp.serverPath".default = "${lib.getExe typst-lsp}"' package.json | sponge package.json
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://marketplace.visualstudio.com/items/nvarner.typst-lsp/changelog";
|
||||
description = "VSCode extension for providing a language server for Typst";
|
||||
downloadPage = "https://marketplace.visualstudio.com/items?itemName=nvarner.typst-lsp";
|
||||
homepage = "https://github.com/nvarner/typst-lsp";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.drupol ];
|
||||
};
|
||||
}
|
||||
Generated
-4339
File diff suppressed because it is too large
Load Diff
@@ -1,84 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
stdenv,
|
||||
darwin,
|
||||
nix-update-script,
|
||||
vscode-extensions,
|
||||
testers,
|
||||
typst-lsp,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "typst-lsp";
|
||||
# Please update the corresponding vscode extension when updating
|
||||
# this derivation.
|
||||
version = "0.13.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nvarner";
|
||||
repo = "typst-lsp";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-OubKtSHw9L4GzVzZY0AVdHY7LzKg/XQIhUfUc2OYAG0=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"typst-syntax-0.7.0" = "sha256-yrtOmlFAKOqAmhCP7n0HQCOQpU3DWyms5foCdUb9QTg=";
|
||||
"typstfmt_lib-0.2.7" = "sha256-LBYsTCjZ+U+lgd7Z3H1sBcWwseoHsuepPd66bWgfvhI=";
|
||||
};
|
||||
};
|
||||
|
||||
# In order to make typst-lsp build with rust >= 1.80, we use the patched Cargo.lock from
|
||||
# https://github.com/nvarner/typst-lsp/pull/515
|
||||
# TODO remove once the PR will have been merged upstream
|
||||
postPatch = ''
|
||||
rm Cargo.lock
|
||||
ln -s ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
checkFlags =
|
||||
[
|
||||
# requires internet access
|
||||
"--skip=workspace::package::external::remote_repo::test::full_download"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# both tests fail on darwin with 'Attempted to create a NULL object.'
|
||||
"--skip=workspace::fs::local::test::read"
|
||||
"--skip=workspace::package::external::manager::test::local_package"
|
||||
];
|
||||
|
||||
# workspace::package::external::manager::test::local_package tries to access the data directory
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests = {
|
||||
vscode-extension = vscode-extensions.nvarner.typst-lsp;
|
||||
version = testers.testVersion { package = typst-lsp; };
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Brand-new language server for Typst";
|
||||
homepage = "https://github.com/nvarner/typst-lsp";
|
||||
mainProgram = "typst-lsp";
|
||||
changelog = "https://github.com/nvarner/typst-lsp/releases/tag/v${version}";
|
||||
license = with lib.licenses; [
|
||||
asl20
|
||||
mit
|
||||
];
|
||||
maintainers = with lib.maintainers; [
|
||||
figsoda
|
||||
GaetanLepage
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1395,6 +1395,7 @@ mapAliases {
|
||||
tvbrowser-bin = tvbrowser; # Added 2023-03-02
|
||||
tvheadend = throw "tvheadend has been removed as it nobody was willing to maintain it and it was stuck on an unmaintained version that required FFmpeg 4; please see https://github.com/NixOS/nixpkgs/pull/332259 if you are interested in maintaining a newer version"; # Added 2024-08-21
|
||||
typst-fmt = typstfmt; # Added 2023-07-15
|
||||
typst-lsp = throw "'typst-lsp' has been removed due to lack of upstream maintenance, consider using 'tinymist' instead"; # Added 2025-01-25
|
||||
typst-preview = throw "The features of 'typst-preview' have been consolidated to 'tinymist', an all-in-one language server for typst"; # Added 2024-07-07
|
||||
|
||||
### U ###
|
||||
|
||||
Reference in New Issue
Block a user