summary refs log tree commit diff stats
path: root/modules/development/javascript.nix
blob: 7771fc3419f3d05d153c260edf0d369aa606a1df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ config, pkgs, ... }:

let
  node = pkgs.unstable.nodejs-10_x;
  npmPackages = pkgs.unstable.nodePackages_10_x;
in
{ environment.systemPackages = (with pkgs.unstable; [
    node
  ] ++ (
    if stdenv.isDarwin
    then
    [
    ]
    else
    [
    # npm install may use any of these
    binutils
    gcc
    gnumake
    python2
    ]
  )) ++ (with npmPackages; [
    node-gyp
    node-gyp-build
    node-pre-gyp

    tern
    node2nix
    nodemon
    javascript-typescript-langserver
    typescript-language-server
    vscode-css-languageserver-bin
    vscode-html-languageserver-bin
    eslint_d
    yarn
    prettier
    pnpm
  ]);
}