nixos-configs/packages/some-sass-language-server/default.nix
matt1432 ab8626e3b1
All checks were successful
Discord / discord commits (push) Has been skipped
feat(sass): switch to @use and setup lsp server
2024-10-31 15:35:03 -04:00

38 lines
859 B
Nix

{
writeShellApplication,
nodejs_latest,
prefetch-npm-deps,
jq,
buildNpmPackage,
makeWrapper,
...
}: let
package = builtins.fromJSON (builtins.readFile ./package.json);
in
buildNpmPackage {
pname = "some-sass-language-server";
version = package.dependencies.some-sass-language-server;
src = ./.;
dontNpmBuild = true;
nativeBuildInputs = [makeWrapper];
installPhase = ''
mkdir -p $out/bin
cp -r node_modules $out
makeWrapper $out/node_modules/.bin/some-sass-language-server $out/bin/some-sass-language-server
'';
npmDepsHash = "sha256-4VYm0UDbdOh2jo8/YkVG4mt0nvkHWTllJWxaZvRuxCc=";
passthru.update = writeShellApplication {
name = "update";
runtimeInputs = [
nodejs_latest
prefetch-npm-deps
jq
];
text = import ./update.nix;
};
}