forked from matklad/config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
42 lines (42 loc) · 1.06 KB
/
shell.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
with import <nixpkgs> {};
(mkShell.override { stdenv = llvmPackages_13.clang.stdenv; }) {
buildInputs = [
pkgconfig
python cmake
openssl zlib libgit2 libxml2 pcre freetype fontconfig
xorg.libX11 xorg.libXcursor xorg.libXrandr xorg.libXrender xorg.libXi xorg.libXext xorg.libXtst xorg.libxcb
libxkbcommon libevdev
ncurses
gtk3 glib
libGL vulkan-loader
glib
nettle
protobuf
];
shellHook = ''
export LLVM_SYS_130_PREFIX = llvmPackages_13.bintools;
export LIBCLANG_PATH="${llvmPackages_13.libclang.lib}/lib"
export LD_LIBRARY_PATH="\
${vulkan-loader}/lib:\
${xorg.libX11.out}/lib:\
${xorg.libXcursor.out}/lib:\
${xorg.libXrandr.out}/lib:\
${xorg.libXi.out}/lib:\
${xorg.libXext.out}/lib:\
${xorg.libXtst.out}/lib:\
${xorg.libXrender.out}/lib:\
${xorg.libxcb.out}/lib:\
${libxkbcommon.out}/lib:\
${libevdev.out}/lib:\
${llvmPackages_10.libclang}/lib:\
${libGL}/lib:\
${freetype}/lib:\
${fontconfig.lib}/lib:\
${libgit2}/lib:\
${openssl.out}/lib:\
${zlib}/lib:\
${glib.out}/lib:\
${nettle.out}/lib:\
${stdenv.cc.cc.lib}/lib:\
"'';
}