From 498f213dd69a75919c41d82d315407ed93655bd2 Mon Sep 17 00:00:00 2001 From: AbubakrBardien Date: Sun, 25 Oct 2026 22:24:44 +0200 Subject: [PATCH 1/2] Added 'shell.nix' for development on NixOS --- .gitignore | 2 ++ shell.nix | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 shell.nix 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..ce641f09 --- /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"; +} From f47b3ebac020ddb009424a96284aa7c4bf5950b8 Mon Sep 17 00:00:00 2001 From: AbubakrBardien Date: Mon, 26 Oct 2026 21:08:43 +0200 Subject: [PATCH 2/2] Fixed indentation issue, the whole file is using spaces now --- shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index ce641f09..fc07bac5 100644 --- a/shell.nix +++ b/shell.nix @@ -9,7 +9,7 @@ pkgs.mkShell { pkgs.cmake pkgs.pkg-config pkgs.raylib - /*nixfmt:disable*/ + /*nixfmt:disable*/ pkgs.clang-tools # clangd, clang-format, clang-tidy pkgs.cpplint # repo's coding standard pkgs.cmake-format # for .cmake-format.yaml