-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathshell.nix
44 lines (41 loc) · 1.15 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
43
44
# Use VSCode Extension: mkhl.direnv
{ callPackage, fetchFromGitHub, lib, stdenv,
cmake, conan, gdb, lldb, gcovr, mold, clang-tools_17, llvmPackages_17, gcc13, gcc13Stdenv, libcxx,
doxygen, texlive, graphviz, ghostscript, pdf2svg, ccache, ccacheStdenv, llvmPackages_latest, gperftools,
xorg, glfw, gl3w, libGLU, libunwind, libGL
}:
let
mainPkg = callPackage ./default.nix { };
in
mainPkg.overrideAttrs (oa: {
# stdenv = pkgs.llvmPackages_16.stdenv;
nativeBuildInputs = [
cmake
conan
gdb
lldb
gcovr
mold
clang-tools_17 # clang-format, clang-tidy
gcc13
gcc13Stdenv
doxygen
texlive.combined.scheme-full
graphviz
ghostscript
pdf2svg
ccache
ccacheStdenv
llvmPackages_latest.libcxxClang # When using 'gcc' this needs to be commented out
gperftools
] ++ (oa.nativeBuildInputs or [ ]);
buildInputs = [
xorg.libX11.dev
glfw
gl3w
libGLU
libunwind
gperftools
] ++ (oa.buildInputs or [ ]);
LD_LIBRARY_PATH = "${libGL}/lib:${glfw}/lib:${libGLU}/lib:${stdenv.cc.cc.lib}/lib:${libcxx}/lib:${gperftools}/lib";
})