Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
typescript,
|
|
}:
|
|
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "vscode-json-languageserver";
|
|
version = "1.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "microsoft";
|
|
repo = "vscode";
|
|
tag = "1.101.2";
|
|
hash = "sha256-wdI6VlJ4WoSNnwgkb6dkVYcq/P/yzflv5mE9PuYBVx4=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/extensions/json-language-features/server";
|
|
|
|
npmDepsHash = "sha256-akQukdYTe6um4xo+7T3wHxx+WrXfKYl5a1qwmqX72HQ=";
|
|
|
|
nativeBuildInputs = [ typescript ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
tsc -p .
|
|
runHook postBuild
|
|
'';
|
|
|
|
dontNpmBuild = true;
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/vscode-json-languageserver $out/bin/vscode-json-language-server
|
|
'';
|
|
|
|
meta = {
|
|
description = "JSON language server";
|
|
homepage = "https://github.com/microsoft/vscode/tree/${finalAttrs.src.tag}/extensions/json-language-features/server";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ryota2357 ];
|
|
mainProgram = "vscode-json-languageserver";
|
|
};
|
|
})
|