Skip to content

Commit

Permalink
Merge pull request #4 from adpextwindong/master
Browse files Browse the repository at this point in the history
Add a Nix-shell development environment
  • Loading branch information
ptitSeb committed Feb 18, 2022
2 parents dad3e14 + d154cc9 commit 30efab1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ SET(BUILD_HEADLESS false CACHE BOOL "Set to true if you want to build a headless
SET(USE_QT CACHE BOOL "Use Qt5 to build dedicated server.")
SET(PANDORA false CACHE BOOL "Build for the Pandora.")
SET(PYRA false CACHE BOOL "Build for the Pyra.")
SET(NIXOS false BOOL "Set OpenGL_GL_PREFERENCE for NIXOS.")

IF(NIXOS)
SET(OpenGL_GL_PREFERENCE "LEGACY")
ENDIF()

IF(WIN32)
SET(CERT "" CACHE FILEPATH "The location of the digital certificate with which to sign your installer.")
Expand Down
5 changes: 5 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
nativeBuildInputs = with pkgs; [ cmake SDL2 sfml glew gcc zlib qt5.full ];
}

0 comments on commit 30efab1

Please sign in to comment.