diff --git a/.gitignore b/.gitignore index 2e30e089..5c82b2ea 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ cmake-build-debug .idea docs /.vs +.direnv/ +.envrc # tools tools/raylib_api.json diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..fc07bac5 --- /dev/null +++ b/shell.nix @@ -0,0 +1,20 @@ +{ + pkgs ? import (fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/02c087f3fe673c9e317f206a627cb6b910336dbe.tar.gz"; + sha256 = "1l60ar0j7j7jrrg4r7j4kscrih0qn2n0lslffzflhv86lyq650r2"; + }) { }, +}: +pkgs.mkShell { + packages = [ + pkgs.cmake + pkgs.pkg-config + pkgs.raylib + /*nixfmt:disable*/ + pkgs.clang-tools # clangd, clang-format, clang-tidy + pkgs.cpplint # repo's coding standard + pkgs.cmake-format # for .cmake-format.yaml + /*nixfmt:enable*/ + ]; + + CMAKE_EXPORT_COMPILE_COMMANDS = "1"; +}