2024-07-01 15:47:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-09-19 14:19:46 +00:00
|
|
|
stdenv,
|
2024-07-01 15:47:52 +00:00
|
|
|
fetchYarnDeps,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
nix-update-script,
|
|
|
|
yarnConfigHook,
|
|
|
|
yarnBuildHook,
|
|
|
|
npmHooks,
|
|
|
|
nodejs,
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-07-01 15:47:52 +00:00
|
|
|
pname = "diagnostic-languageserver";
|
|
|
|
version = "1.15.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iamcco";
|
|
|
|
repo = "diagnostic-languageserver";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-EFkvxMvtA5L6ZiDxrZxGnNAphNn/P3ra6ZrslplScZg=";
|
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
yarnOfflineCache = fetchYarnDeps {
|
|
|
|
yarnLock = "${finalAttrs.src}/yarn.lock";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-T8ppt8EDljtMhGp9i0VleU2Nw3tJexE2ufT6C4EtAz0=";
|
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
yarnConfigHook
|
|
|
|
yarnBuildHook
|
|
|
|
npmHooks.npmInstallHook
|
|
|
|
nodejs
|
|
|
|
];
|
2024-07-01 15:47:52 +00:00
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "General purpose Language Server that integrate with linter to support diagnostic features";
|
|
|
|
homepage = "https://github.com/iamcco/diagnostic-languageserver";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/iamcco/diagnostic-languageserver/releases/tag/v${finalAttrs.version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
mainProgram = "diagnostic-languageserver";
|
|
|
|
maintainers = with lib.maintainers; [ pyrox0 ];
|
|
|
|
};
|
2024-09-19 14:19:46 +00:00
|
|
|
})
|