Skip to content

Commit 3cd43b6

Browse files
authored
Merge pull request #442 from AbubakrBardien/nixos-development
Added 'shell.nix' for development on NixOS
2 parents e85a167 + f47b3eb commit 3cd43b6

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ cmake-build-debug
66
.idea
77
docs
88
/.vs
9+
.direnv/
10+
.envrc
911

1012
# tools
1113
tools/raylib_api.json

‎shell.nix‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
pkgs ? import (fetchTarball {
3+
url = "https://github.com/NixOS/nixpkgs/archive/02c087f3fe673c9e317f206a627cb6b910336dbe.tar.gz";
4+
sha256 = "1l60ar0j7j7jrrg4r7j4kscrih0qn2n0lslffzflhv86lyq650r2";
5+
}) { },
6+
}:
7+
pkgs.mkShell {
8+
packages = [
9+
pkgs.cmake
10+
pkgs.pkg-config
11+
pkgs.raylib
12+
/*nixfmt:disable*/
13+
pkgs.clang-tools # clangd, clang-format, clang-tidy
14+
pkgs.cpplint # repo's coding standard
15+
pkgs.cmake-format # for .cmake-format.yaml
16+
/*nixfmt:enable*/
17+
];
18+
19+
CMAKE_EXPORT_COMPILE_COMMANDS = "1";
20+
}

0 commit comments

Comments
 (0)