15 rustPlatform.buildRustPackage rec {
17 # Please update the corresponding vscode extension when updating
21 src = fetchFromGitHub {
22 owner = "Myriad-Dreamin";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-5UNgjK4636XXjUaq2XqYs1a7vY1b+0OGZbI0xajSVcc=";
29 lockFile = ./Cargo.lock;
31 "typst-0.11.1" = "sha256-VDwyTKrtzmjMhVCp/GnZrgL6P6dLyKlLNA+LhoXBDl0=";
32 "typst-syntax-0.7.0" = "sha256-yrtOmlFAKOqAmhCP7n0HQCOQpU3DWyms5foCdUb9QTg=";
33 "typstfmt_lib-0.2.7" = "sha256-LBYsTCjZ+U+lgd7Z3H1sBcWwseoHsuepPd66bWgfvhI=";
45 ] ++ lib.optionals stdenv.isDarwin [
46 darwin.apple_sdk_11_0.frameworks.CoreFoundation
47 darwin.apple_sdk_11_0.frameworks.CoreServices
48 darwin.apple_sdk_11_0.frameworks.Security
49 darwin.apple_sdk_11_0.frameworks.SystemConfiguration
54 # Fails because of missing `creation_timestamp` field
55 # https://github.com/NixOS/nixpkgs/pull/328756#issuecomment-2241322796
56 "--skip=test_config_update"
60 updateScript = nix-update-script { };
61 tests.version = testers.testVersion {
62 command = "${meta.mainProgram} -V";
68 changelog = "https://github.com/Myriad-Dreamin/tinymist/blob/${src.rev}/CHANGELOG.md";
69 description = "Tinymist is an integrated language service for Typst";
70 homepage = "https://github.com/Myriad-Dreamin/tinymist";
71 license = lib.licenses.asl20;
72 mainProgram = "tinymist";
73 maintainers = with lib.maintainers; [ lampros ];