Skip to content

Commit

Permalink
NixOS specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
ToppDev committed Dec 4, 2023
1 parent 20582b5 commit 5a16fe5
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use nix
46 changes: 46 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Use VSCode Extension: mkhl.direnv

with import <nixpkgs> {};

pkgs.mkShell {
# stdenv = pkgs.llvmPackages_16.stdenv;
nativeBuildInputs = with pkgs; [
cmake
conan
gdb
lldb
gcovr
mold
clang-tools_16 # clang-format, clang-tidy
gcc12
gcc12Stdenv
(doxygen.overrideAttrs (oldAttrs: rec {
version = "1.9.8";
src = fetchFromGitHub {
owner = "doxygen";
repo = "doxygen";
rev = "Release_${lib.replaceStrings [ "." ] [ "_" ] version}";
sha256 = "sha256-uQ1Fl2kmY7qmzy34NOmZCgPxVGwmqRqDvV6yEab5P4w=";
};
})
)
texlive.combined.scheme-full
graphviz
ghostscript
pdf2svg

ccache
ccacheStdenv
llvmPackages_16.libcxxClang # When using 'gcc' this needs to be commented out
gperftools
];
buildInputs = with pkgs; [
xorg.libX11.dev
glfw
gl3w
libGLU
libunwind
gperftools
];
LD_LIBRARY_PATH = "${pkgs.libGL}/lib:${pkgs.glfw}/lib:${pkgs.libGLU}/lib:${stdenv.cc.cc.lib}/lib:${pkgs.llvmPackages_16.libcxxabi}/lib:${pkgs.llvmPackages_16.libcxx}/lib:${pkgs.gperftools}/lib";
}

0 comments on commit 5a16fe5

Please sign in to comment.