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

pkgs.mkShellNoCC {
  packages = with pkgs; [
    rustc
    clang # yes, it's necessary or ‘cc’ can't be found. -bjc 2025-aug-7
    lld # ibid.
    cargo
    rust-analyzer
    wasm-pack
    # 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
  ];

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