aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/shell.nix
blob: e26d8c53c1078c8a5904d73cab40f27ab0af11cf (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
with import <nixpkgs> {};

mkShell rec {
  name = "rstnode-shell";
  buildInputs = with pkgs; [
    rustc cargo clangStdenv rust-analyzer rustfmt

    # ggez dependencies
    pkg-config alsaLib libudev

    # librsvg dependencies
    glib cairo pango gdk-pixbuf libxml2

    
  ] ++ (with pkgs.xlibs; [
    # General opengl dependencies
    
    libGL
    libGLU
    libGL_driver
    
    libX11
    libXcursor
    libXi
    libXrandr
    libXxf86vm
    libxcb
    libxkbcommon
  ]);
  
  LD_LIBRARY_PATH = (lib.makeLibraryPath buildInputs);
}