mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
90cba9b17d
Diff: https://github.com/Myriad-Dreamin/tinymist/compare/refs/tags/v0.12.8...v0.12.10 Changelog: https://github.com/Myriad-Dreamin/tinymist/blob/v0.12.10/CHANGELOG.md
87 lines
2.1 KiB
Nix
87 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
libgit2,
|
|
openssl,
|
|
zlib,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
vscode-extensions,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tinymist";
|
|
# Please update the corresponding vscode extension when updating
|
|
# this derivation.
|
|
version = "0.12.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Myriad-Dreamin";
|
|
repo = "tinymist";
|
|
tag = "v${version}";
|
|
hash = "sha256-y+H1Q8TJa7XinVcsgZ9XCyeIUqQzvIAjlkgjia9rNso=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-Fvd8PqT64HseoIIhsWittN6Trp2i4ravIc+ETwiY+xQ=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
libgit2
|
|
openssl
|
|
zlib
|
|
];
|
|
|
|
checkFlags = [
|
|
"--skip=e2e"
|
|
|
|
# Require internet access
|
|
"--skip=docs::package::tests::cetz"
|
|
"--skip=docs::package::tests::tidy"
|
|
"--skip=docs::package::tests::touying"
|
|
|
|
# Tests are flaky for unclear reasons since the 0.12.3 release
|
|
# Reported upstream: https://github.com/Myriad-Dreamin/tinymist/issues/868
|
|
"--skip=analysis::expr_tests::scope"
|
|
"--skip=analysis::post_type_check_tests::test"
|
|
"--skip=analysis::type_check_tests::test"
|
|
"--skip=completion::tests::test_pkgs"
|
|
"--skip=folding_range::tests::test"
|
|
"--skip=goto_definition::tests::test"
|
|
"--skip=hover::tests::test"
|
|
"--skip=inlay_hint::tests::smart"
|
|
"--skip=prepare_rename::tests::prepare"
|
|
"--skip=references::tests::test"
|
|
"--skip=rename::tests::test"
|
|
"--skip=semantic_tokens_full::tests::test"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = [ "-V" ];
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests = {
|
|
vscode-extension = vscode-extensions.myriad-dreamin.tinymist;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Myriad-Dreamin/tinymist/blob/v${version}/CHANGELOG.md";
|
|
description = "Tinymist is an integrated language service for Typst";
|
|
homepage = "https://github.com/Myriad-Dreamin/tinymist";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "tinymist";
|
|
maintainers = with lib.maintainers; [
|
|
GaetanLepage
|
|
lampros
|
|
];
|
|
};
|
|
}
|