diff options
author | Samir Hafez <me@samirhafez.com> | 2021-01-04 12:13:53 +0000 |
---|---|---|
committer | Samir Hafez <me@samirhafez.com> | 2021-01-19 12:30:50 +0000 |
commit | 449100b24a9db5f276b7ad066acc096d0918e836 (patch) | |
tree | 24e65c0630980c6bfcbff3d3f352655b79128356 | |
parent | 35d4f19991da017e993912d05be51fb07edc574f (diff) |
yaml-language-server: Fails to start due to missing `prettier` dependency
-rw-r--r-- | pkgs/development/node-packages/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/node-packages/default.nix b/pkgs/development/node-packages/default.nix index c8694a46bd14..ea105b452ad5 100644 --- a/pkgs/development/node-packages/default.nix +++ b/pkgs/development/node-packages/default.nix @@ -258,5 +258,13 @@ let echo /var/lib/thelounge > $out/lib/node_modules/thelounge/.thelounge_home ''; }; + + yaml-language-server = super.yaml-language-server.override { + nativeBuildInputs = [ pkgs.makeWrapper ]; + postInstall = '' + wrapProgram "$out/bin/yaml-language-server" \ + --prefix NODE_PATH : ${self.prettier}/lib/node_modules + ''; + }; }; in self |