2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, mkYarnPackage
|
|
|
|
, fetchYarnDeps
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkYarnPackage rec {
|
|
|
|
pname = "yaml-language-server";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "1.15.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redhat-developer";
|
|
|
|
repo = "yaml-language-server";
|
|
|
|
rev = version;
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-Y3Q/y9UIiy7US8Jl4vxT0Pfw8h3hiXK+Cu9TEQHyAaA=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
packageJSON = ./package.json;
|
|
|
|
offlineCache = fetchYarnDeps {
|
|
|
|
yarnLock = "${src}/yarn.lock";
|
|
|
|
hash = "sha256-zHcxZ4VU6CGux72Nsy0foU4gFshK1wO/LTfnwOoirmg=";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
yarn --offline build
|
|
|
|
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/redhat-developer/yaml-language-server/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
description = "Language Server for YAML Files";
|
|
|
|
homepage = "https://github.com/redhat-developer/yaml-language-server";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
mainProgram = "yaml-language-server";
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = [ ];
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
}
|