-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevenv.nix
More file actions
56 lines (49 loc) · 1.28 KB
/
Copy pathdevenv.nix
File metadata and controls
56 lines (49 loc) · 1.28 KB
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
51
52
53
54
55
56
{ pkgs, lib, ... }:
{
# zig builds every native target, zls comes along for build.zig
languages.zig.enable = true;
languages.zig.version = "0.16.0";
# clangd for the C host, it reads the generated compile_flags.txt
languages.cplusplus.enable = true;
languages.cplusplus.lsp.package = pkgs.clang-tools;
packages = [
pkgs.git
pkgs.curl
pkgs.zip
pkgs.pkg-config
pkgs.emscripten
# python tooling: LSP for game scripts, deps for bindgen
pkgs.basedpyright
(pkgs.python3.withPackages (ps: [ ps.pycparser ps.pcpp ]))
# linux window and GL libs for raylib's GLFW (X11 and Wayland)
pkgs.libGL
pkgs.wayland
pkgs.wayland-protocols
pkgs.wayland-scanner
pkgs.libxkbcommon
pkgs.libdecor
pkgs.xorg.libX11
pkgs.xorg.libXrandr
pkgs.xorg.libXinerama
pkgs.xorg.libXcursor
pkgs.xorg.libXi
pkgs.xorg.libXrender
pkgs.xorg.libXfixes
pkgs.xorg.libXext
];
# GLFW dlopens these at runtime.
env.LD_LIBRARY_PATH = lib.makeLibraryPath [
pkgs.libGL
pkgs.wayland
pkgs.libxkbcommon
pkgs.libdecor
pkgs.xorg.libX11
pkgs.xorg.libXrandr
pkgs.xorg.libXinerama
pkgs.xorg.libXcursor
pkgs.xorg.libXi
] + ":/run/opengl-driver/lib";
enterShell = ''
echo "commands: ./build.sh help"
'';
}