2023-03-29 09:42:07 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "typst-lsp";
|
2023-04-18 21:31:24 +00:00
|
|
|
version = "0.4.1";
|
2023-03-29 09:42:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nvarner";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-04-18 21:31:24 +00:00
|
|
|
hash = "sha256-bjgGJxAHc3D0j+ZIPPzBw9vJJgchW9hy5E/qCmFjDUw=";
|
2023-03-29 09:42:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-04-16 14:39:16 +00:00
|
|
|
"elsa-1.8.1" = "sha256-/85IriplPxx24TE/CsvjIsve100QUZiVqS0TWgPFRbw=";
|
|
|
|
"typst-0.2.0" = "sha256-3vNJmLmbskAzXVXjiSVDLhRcX1j3ksOgPd53W31YZ0c=";
|
2023-03-29 09:42:07 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-ISkw0lhUKJG8nWUHcR93sLUFt5dDEyK7EORcOXEmVbE=";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A brand-new language server for Typst";
|
|
|
|
homepage = "https://github.com/nvarner/typst-lsp";
|
2023-04-16 14:39:16 +00:00
|
|
|
changelog = "https://github.com/nvarner/typst-lsp/releases/tag/${src.rev}";
|
2023-03-29 09:42:07 +00:00
|
|
|
license = with licenses; [ mit ];
|
2023-04-16 14:39:16 +00:00
|
|
|
maintainers = with maintainers; [ figsoda GaetanLepage ];
|
2023-03-29 09:42:07 +00:00
|
|
|
};
|
|
|
|
}
|