From 5a16fe51ba47f55dc4701419d08120f14785af1c Mon Sep 17 00:00:00 2001 From: Thomas Topp Date: Mon, 4 Dec 2023 15:43:55 +0100 Subject: [PATCH] NixOS specific files --- .envrc | 1 + shell.nix | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 000000000..1d953f4bd --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 000000000..64970710d --- /dev/null +++ b/shell.nix @@ -0,0 +1,46 @@ +# Use VSCode Extension: mkhl.direnv + +with import {}; + +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"; +}