16 rustPlatform.buildRustPackage rec {
18 # Please update the corresponding vscode extension when updating
22 src = fetchFromGitHub {
23 owner = "Myriad-Dreamin";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-z0JfHEG01q83iHAQA/Ke/DPhKQYwkWv9HRpeUdXmTxs=";
30 lockFile = ./Cargo.lock;
32 "typst-0.12.0" = "sha256-E2wSVHqY3SymCwKgbLsASJYaWfrbF8acH15B2STEBF8=";
33 "typst-syntax-0.7.0" = "sha256-yrtOmlFAKOqAmhCP7n0HQCOQpU3DWyms5foCdUb9QTg=";
34 "typstfmt_lib-0.2.7" = "sha256-LBYsTCjZ+U+lgd7Z3H1sBcWwseoHsuepPd66bWgfvhI=";
38 nativeBuildInputs = [ pkg-config ];
46 ++ lib.optionals stdenv.hostPlatform.isDarwin [
47 darwin.apple_sdk_11_0.frameworks.CoreFoundation
48 darwin.apple_sdk_11_0.frameworks.CoreServices
49 darwin.apple_sdk_11_0.frameworks.Security
50 darwin.apple_sdk_11_0.frameworks.SystemConfiguration
56 # Require internet access
57 "--skip=docs::package::tests::cetz"
58 "--skip=docs::package::tests::tidy"
59 "--skip=docs::package::tests::touying"
62 nativeInstallCheckInputs = [
65 versionCheckProgramArg = [ "-V" ];
66 doInstallCheck = true;
69 updateScript = nix-update-script { };
71 vscode-extension = vscode-extensions.myriad-dreamin.tinymist;
76 changelog = "https://github.com/Myriad-Dreamin/tinymist/blob/${src.rev}/CHANGELOG.md";
77 description = "Tinymist is an integrated language service for Typst";
78 homepage = "https://github.com/Myriad-Dreamin/tinymist";
79 license = lib.licenses.asl20;
80 mainProgram = "tinymist";
81 maintainers = with lib.maintainers; [