5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
41 lines
1,000 B
Nix
41 lines
1,000 B
Nix
{ lib
|
|
, mkYarnPackage
|
|
, fetchYarnDeps
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
mkYarnPackage rec {
|
|
pname = "yaml-language-server";
|
|
version = "1.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "redhat-developer";
|
|
repo = "yaml-language-server";
|
|
rev = version;
|
|
hash = "sha256-DS5kMw/x8hP2MzxHdHXnBqqBGLq21NiZBb5ApjEe/ts=";
|
|
};
|
|
|
|
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";
|
|
maintainers = with lib.maintainers; [ wolfangaukang ];
|
|
};
|
|
}
|