summary refs log tree commit diff stats
path: root/modules/development/javascript.nix
blob: 1bdd4a4c071669b48b8fff71f550d6a3b4769a09 (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
40
41
42
43
44
45
46
47
48
49
50
{ config, pkgs, ... }:

let
  node = pkgs.unstable.nodejs-10_x;
  npmPackages = pkgs.unstable.nodePackages_10_x;
  node2nixPackages = import ../../packages/node2nix/default.nix {
    pkgs = pkgs.unstable;
    nodejs = node;
  };
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
    csslint
    eslint_d
    prettier
    typescript

    node2nixPackages.bunyan
    node2nixPackages.pino-pretty
    node2nixPackages."pnpm-3.6.2"
    node2nixPackages.prettier_d
    node2nixPackages.dockerfile-language-server-nodejs
    node2nixPackages.yaml-language-server
  ]);
}