2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libgit2
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "tinymist";
|
|
|
|
# Please update the corresponding vscode extension when updating
|
|
|
|
# this derivation.
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.11.10";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Myriad-Dreamin";
|
|
|
|
repo = "tinymist";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-lmT0da517dVaXGeObyCXZyte8DNBh+/vaqV7hA+SJR4=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-06-05 15:53:02 +00:00
|
|
|
"typst-0.11.1" = "sha256-VDwyTKrtzmjMhVCp/GnZrgL6P6dLyKlLNA+LhoXBDl0=";
|
2024-04-21 15:54:59 +00:00
|
|
|
"typst-syntax-0.7.0" = "sha256-yrtOmlFAKOqAmhCP7n0HQCOQpU3DWyms5foCdUb9QTg=";
|
|
|
|
"typstfmt_lib-0.2.7" = "sha256-LBYsTCjZ+U+lgd7Z3H1sBcWwseoHsuepPd66bWgfvhI=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libgit2
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk_11_0.frameworks.CoreFoundation
|
|
|
|
darwin.apple_sdk_11_0.frameworks.CoreServices
|
|
|
|
darwin.apple_sdk_11_0.frameworks.Security
|
|
|
|
darwin.apple_sdk_11_0.frameworks.SystemConfiguration
|
|
|
|
];
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
"--skip=e2e"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/Myriad-Dreamin/tinymist/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
description = "Tinymist is an integrated language service for Typst";
|
|
|
|
homepage = "https://github.com/Myriad-Dreamin/tinymist";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.asl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tinymist";
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with lib.maintainers; [ lampros ];
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
}
|