aboutsummaryrefslogtreecommitdiffstats
path: root/shell.nix
blob: 172a6b01e5bc7169c3f10f9bc17fc87cd23ee654 (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
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  packages = with pkgs; [
    rustc
    clang # yes, it's necessary or ‘cc’ can't be found. -bjc 2025-aug-7
    lld # ibid.
    cargo
    wasm-pack
    rust-analyzer
    clippy
    rustfmt
    # the only thing better than needing cargo's infinite dependencies
    # is needing npm's as well, just so we can use a bundler built for
    # another, wildly different, registry.
    nodePackages.npm

    typescript-language-server
    vscode-langservers-extracted

    # for http.server
    python3

    # testing scheme wasm stuff
    guile
    guile-hoot
  ];

  TMPDIR = "/tmp"; # javascript lsp needs it
  CARGO_HOME = "/data/bjc/cargo";
}