Skip to content

Commit

Permalink
nix/shell: add NodeJS, TS language server, pnpm to packages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tomhoule committed Sep 7, 2023
1 parent 7fec122 commit 58511f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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'";
Expand Down

0 comments on commit 58511f7

Please sign in to comment.