2024-06-24 03:20:30 -03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildNpmPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
importNpmLock,
|
2024-06-15 22:57:44 -03:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "vtsls";
|
2024-07-16 00:47:19 -03:00
|
|
|
version = "0.2.5";
|
2024-06-15 22:57:44 -03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yioneko";
|
|
|
|
repo = "vtsls";
|
|
|
|
rev = "server-v${version}";
|
2024-07-16 00:47:19 -03:00
|
|
|
hash = "sha256-4tuVM1mT3NvtJgFf6EdTZmW5PfdiMv7lj2wCSgOOvcc=";
|
2024-06-15 22:57:44 -03:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/packages/server";
|
|
|
|
|
|
|
|
npmDeps = importNpmLock {
|
|
|
|
npmRoot = "${src}/packages/server";
|
|
|
|
packageLock = lib.importJSON ./package-lock.json;
|
|
|
|
};
|
|
|
|
|
|
|
|
npmConfigHook = importNpmLock.npmConfigHook;
|
|
|
|
|
|
|
|
dontNpmPrune = true;
|
2024-06-24 03:20:30 -03:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "LSP wrapper around TypeScript extension bundled with VSCode.";
|
|
|
|
homepage = "https://github.com/yioneko/vtsls";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ wizardlink ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2024-06-15 22:57:44 -03:00
|
|
|
}
|