nixpkgs/pkgs/development/tools/language-servers/typst-lsp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
912 B
Nix
Raw Normal View History

2023-03-29 09:42:07 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "typst-lsp";
version = "0.4.1";
2023-03-29 09:42:07 +00:00
src = fetchFromGitHub {
owner = "nvarner";
repo = pname;
rev = "v${version}";
hash = "sha256-bjgGJxAHc3D0j+ZIPPzBw9vJJgchW9hy5E/qCmFjDUw=";
2023-03-29 09:42:07 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"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";
changelog = "https://github.com/nvarner/typst-lsp/releases/tag/${src.rev}";
2023-03-29 09:42:07 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ figsoda GaetanLepage ];
2023-03-29 09:42:07 +00:00
};
}