css-variables-language-server: init at 2.8.4 (#512618)

This commit is contained in:
Sandro
2026-05-04 12:17:57 +00:00
committed by GitHub
2 changed files with 66 additions and 0 deletions
+6
View File
@@ -923,6 +923,12 @@
githubId = 4717906;
name = "Jakub Skokan";
};
aiwao = {
email = "aiwao@140.lol";
github = "aiwao";
githubId = 233898056;
name = "aiwao";
};
aiyion = {
email = "git@aiyionpri.me";
github = "AiyionPrime";
@@ -0,0 +1,60 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
pkg-config,
makeWrapper,
libsecret,
nodejs,
}:
buildNpmPackage (finalAttrs: {
pname = "css-variables-language-server";
version = "2.8.4";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "vunguyentuan";
repo = "vscode-css-variables";
tag = "css-variables-language-server@${finalAttrs.version}";
hash = "sha256-NdacBF8sUOij6k4AkMim93LrBJi8JL43q/N8GryTXHA=";
};
npmDepsHash = "sha256-cgX/M05UGsx87QO/Ge0VCD2hQ9MkfJarJVNCj/IcnM0=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
libsecret
];
preBuild = ''
patchShebangs .
'';
installPhase = ''
runHook preInstall
mkdir -p $out/lib $out/bin
cp -r node_modules $out/lib
cp -r packages $out/lib
makeWrapper ${nodejs}/bin/node $out/bin/index.js --add-flags "$out/lib/packages/css-variables-language-server/dist/index.js"
mv $out/bin/index.js $out/bin/css-variables-language-server
runHook postInstall
'';
meta = {
description = "CSS Variables Language Server in node";
changelog = "https://github.com/vunguyentuan/vscode-css-variables/releases/tag/css-variables-language-server@${finalAttrs.version}";
homepage = "https://github.com/vunguyentuan/vscode-css-variables";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aiwao ];
mainProgram = "css-variables-language-server";
};
})