Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update raylib #368931

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11639,6 +11639,12 @@
github = "karantan";
githubId = 7062631;
};
Karidus-423 = {
email = "[email protected]";
github = "Karidus-423";
githubId = 79239830;
name = "Kennett Puerto";
};
KarlJoad = {
email = "[email protected]";
github = "KarlJoad";
Expand Down
23 changes: 7 additions & 16 deletions pkgs/by-name/ra/raylib/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
, fetchFromGitHub
, cmake
, fetchpatch
, libgbm
, libGLU
, glfw
, libX11
Expand All @@ -26,21 +25,21 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "raylib";
version = "5.0";
version = "5.5";

src = fetchFromGitHub {
owner = "raysan5";
repo = "raylib";
rev = finalAttrs.version;
hash = "sha256-gEstNs3huQ1uikVXOW4uoYnIDr5l8O9jgZRTX1mkRww=";
hash = "sha256-J99i4z4JF7d6mJNuJIB0rHNDhXJ5AEkG0eBvvuBLHrY=";
};

nativeBuildInputs = [
cmake
] ++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;

buildInputs = [ glfw ]
++ lib.optionals stdenv.hostPlatform.isLinux [ libgbm libXi libXcursor libXrandr libXinerama ]
++ lib.optionals stdenv.hostPlatform.isLinux [ libXi libXcursor libXrandr libXinerama ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ Carbon Cocoa ]
++ lib.optional alsaSupport alsa-lib
++ lib.optional pulseSupport libpulseaudio;
Expand All @@ -49,6 +48,7 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals stdenv.hostPlatform.isDarwin [ OpenGL ];

# https://github.com/raysan5/raylib/wiki/CMake-Build-Options
# OpenGL defaults to 3.3. Add cmake flag to change.
cmakeFlags = [
"-DUSE_EXTERNAL_GLFW=ON"
"-DBUILD_EXAMPLES=OFF"
Expand All @@ -58,17 +58,6 @@ stdenv.mkDerivation (finalAttrs: {

passthru.tests = { inherit raylib-games; };

patches = [
# Patch version in CMakeLists.txt to 5.0.0
# The library author doesn't use cmake, so when updating this package please
# check that the resulting library extension matches the package version
# and remove/update this patch
(fetchpatch {
url = "https://github.com/raysan5/raylib/commit/032cc497ca5aaca862dc926a93c2a45ed8017737.patch";
hash = "sha256-qsX5AwyQaGoRsbdszOO7tUF9dR+AkEFi4ebNkBVHNEY=";
})
];

# fix libasound.so/libpulse.so not being found
appendRunpaths = lib.optionals stdenv.hostPlatform.isLinux [
(lib.makeLibraryPath (lib.optional alsaSupport alsa-lib ++ lib.optional pulseSupport libpulseaudio))
Expand All @@ -78,8 +67,10 @@ stdenv.mkDerivation (finalAttrs: {
description = "Simple and easy-to-use library to enjoy videogames programming";
homepage = "https://www.raylib.com/";
license = licenses.zlib;
maintainers = [ ];
maintainers = with lib.maintainers;[Karidus-423];
platforms = platforms.all;
changelog = "https://github.com/raysan5/raylib/blob/${finalAttrs.version}/CHANGELOG";
};
})


Loading