raylib: 3.5.0 -> 3.7.0 (#124244)

* raylib: 3.5.0 -> 3.7.0

* Update pkgs/development/libraries/raylib/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Adam Griffiths 2021-06-03 21:22:09 +10:00 committed by GitHub
parent 56c94a004f
commit 7b6aa2b704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,25 +3,26 @@
libX11, libXi, libXcursor, libXrandr, libXinerama,
alsaSupport ? stdenv.hostPlatform.isLinux, alsaLib,
pulseSupport ? stdenv.hostPlatform.isLinux, libpulseaudio,
sharedLib ? true,
includeEverything ? true
}:
stdenv.mkDerivation rec {
pname = "raylib";
version = "3.5.0";
version = "3.7.0";
src = fetchFromGitHub {
owner = "raysan5";
repo = pname;
rev = version;
sha256 = "0syvd5js1lbx3g4cddwwncqg95l6hb3fdz5nsh5pqy7fr6v84kwj";
sha256 = "1w8v747hqy0ils6zmy8sm056f24ybjhn9bamqzlxvbqhvh9vvly1";
};
patches = [
# fixes examples not compiling in 3.5.0
# fixes incorrect version being set by cmake
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/raysan5/raylib/pull/1470.patch";
sha256 = "1ff5l839wl8dxwrs2bwky7kqa8kk9qmsflg31sk5vbil68dzbzg0";
url = "https://github.com/raysan5/raylib/commit/204aa4c46fdd6986aa0130eeba658562c540759f.patch";
sha256 = "10pl7828iy4kadach0wy4fs95vr7k08z3mxw90j8dm9xak1ri8fz";
})
];
@ -34,9 +35,9 @@ stdenv.mkDerivation rec {
# https://github.com/raysan5/raylib/wiki/CMake-Build-Options
cmakeFlags = [
"-DUSE_EXTERNAL_GLFW=ON"
"-DSHARED=ON"
"-DBUILD_EXAMPLES=OFF"
] ++ lib.optional includeEverything "-DINCLUDE_EVERYTHING=ON";
] ++ lib.optional includeEverything "-DINCLUDE_EVERYTHING=ON"
++ lib.optional sharedLib "-DBUILD_SHARED_LIBS=ON";
# fix libasound.so/libpulse.so not being found
preFixup = ''