From 58511f7f4647aff8fa8b408851e5d22f0200017b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Houl=C3=A9?= Date: Thu, 7 Sep 2023 09:39:09 +0200 Subject: [PATCH] nix/shell: add NodeJS, TS language server, pnpm to packages There will be more of that and less Rust in the future, so let's get these into the default devShell. The regrettable part is that it will have to stay devShell only for now, since there is no quality lockfile translator for the pnpm dependencies, so we can't make a derivation out of these packages. --- nix/shell.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nix/shell.nix b/nix/shell.nix index cf8f3215e4f0..c30ca9080d47 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -5,7 +5,14 @@ let in { devShells.default = pkgs.mkShell { - packages = [ devToolchain pkgs.llvmPackages_latest.bintools ]; + packages = [ + devToolchain + pkgs.llvmPackages_latest.bintools + + pkgs.nodejs + pkgs.nodePackages.typescript-language-server + pkgs.nodePackages.pnpm + ]; inputsFrom = [ self'.packages.prisma-engines ]; shellHook = pkgs.lib.optionalString pkgs.stdenv.isLinux "export RUSTFLAGS='-C link-arg=-fuse-ld=lld'";