-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
109 lines (95 loc) · 2.5 KB
/
flake.nix
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default =
pkgs.mkShell
{
nativeBuildInputs = with pkgs; [
# pkgsconfig
pkg-config
clang
lld
];
buildInputs = with pkgs; [
# (odin.overrideAttrs (finalAttr: prevAttr: {
#
# src = fetchFromGitHub {
# owner = "odin-lang";
# repo = "Odin";
# rev = "dev-2024-04a"; # version of the branch
# hash = "";
# # name = "${finalAttr.pname}-${finalAttr.version}"; # not gona work .
# };
#
# preBuild = ''
#
# echo "# for use of STB libraries"
# cd vendor/stb/src
# make
# cd ../../..
#
# '';
#
# }))
odin
ols
# SDL
SDL2
SDL2_mixer
SDL2_ttf
SDL
glfw
vulkan-headers
vulkan-loader
vulkan-tools
glxinfo
lld
gnumake
xorg.libX11.dev
xorg.libX11
xorg.libXft
xorg.libXi
xorg.libXinerama
libGL
# not need because of vendor
stb
lua
# debugging stuff and profile
valgrind
rr
gdb
lldb
gf
renderdoc
xorg.libXcursor
xorg.libXrandr
xorg.libXinerama
wayland
];
shellHook = ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${
pkgs.lib.makeLibraryPath [
pkgs.libGL
pkgs.xorg.libX11
pkgs.xorg.libXi
# for SDL and SDL2
pkgs.SDL2
pkgs.SDL2_mixer
pkgs.SDL2_ttf
pkgs.SDL
# for vulkan and GLFW
pkgs.vulkan-loader
pkgs.glfw
]
}"
'';
};
};
}