[PATCH] gnu: raylib: Update to 5.5.

  • Done
  • quality assurance status badge
Details
2 participants
  • arnaud.lechevallier
  • iyzsong
Owner
unassigned
Submitted by
iyzsong
Severity
normal

Debbugs page

I
I
iyzsong wrote on 8 Mar 21:43 -0800
(address . guix-patches@gnu.org)(name . 宋文武)(address . iyzsong@member.fsf.org)
daa517086f4609d65988888513e63e5c788d358c.1741499025.git.iyzsong@member.fsf.org
From: 宋文武 <iyzsong@member.fsf.org>

* gnu/packages/game-development.scm (raylib): Update to 5.5.
[inputs]: Replace glfw with glfw-3.4.

Change-Id: If312732d3602dc2e495c32a78fe9390642da726c
---
gnu/packages/game-development.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Toggle diff (35 lines)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index a026e114c4..e74bf9de1c 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -3670,7 +3670,7 @@ (define-public recastnavigation
(define-public raylib
(package
(name "raylib")
- (version "5.0")
+ (version "5.5")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -3680,7 +3680,7 @@ (define-public raylib
;; TODO: Unbundle src/external
(sha256
(base32
- "0327licmylwlh5iyzw35pq7ci2d15rp3jms5i9p0vfg1rlv2sjw0"))))
+ "1dhy9ghbwvz0s434j03rfa2l6wxcfj028vlkk1xbf5q97vin5pr7"))))
(build-system cmake-build-system)
(arguments
(list #:tests? #f ;no test
@@ -3700,7 +3700,7 @@ (define-public raylib
#define MA_ENABLE_PULSEAUDIO
#include \"external/miniaudio.h\"
")))))))
- (inputs (list glfw pulseaudio))
+ (inputs (list glfw-3.4 pulseaudio))
(native-inputs (list pkg-config))
(synopsis "C library for videogame programming")
(description

base-commit: 4538aa4acd199db7d7df1deb5e47b2ff6edb50f9
--
2.48.1
A
A
arnaud.lechevallier wrote on 9 Mar 12:45 -0700
Adding a new phase to provide raylib_api files
(address . 76881@debbugs.gnu.org)
26164828.330809772.1741549519753.JavaMail.root@zimbra81-e14.priv.proxad.net
Hi iyzsong and guix team,

I'm sorry to intervene. I had also planned to update Raylib to 5.5 today. What a coincidence!

Would you consider adding a new phase to this package to provide additional raylib_api files ?
My proposal is attached for your reference.

This would make it possible to create bindings for other languages. By the way, I proposed this
patch last year https://issues.guix.gnu.org/74059 to bring Raylib support to guile.

Regards, Arnaud.
From d058c5e8b9f0db4b0d2a0613866aa99dddab3dc8 Mon Sep 17 00:00:00 2001
Message-ID: <d058c5e8b9f0db4b0d2a0613866aa99dddab3dc8.1741545563.git.arnaud.lechevallier@free.fr>
From: Arnaud Lechevallier <arnaud.lechevallier@free.fr>
Date: Sun, 9 Mar 2025 19:03:51 +0100
Subject: [PATCH] gnu: raylib: Update to 5.5 and use glfw-3.4

* gnu/packages/game-development.scm: (raylib): Update to 5.5.
[inputs]: Replace glfw with glfw-3.4.
[phases] {install-parser}: New phase. Install additional raylib_api files.

Change-Id: I4fb6b453abb48c7fbea18f187fdd9ce91c9c31fa
---
gnu/packages/game-development.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (47 lines)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index a026e114c4..e8cbb8a3f6 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -33,6 +33,7 @@
;;; Copyright © 2022-2023, 2025 Adam Faiz <adam.faiz@disroot.org>
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2025 Arnaud Lechevallier <arnaud.lechevallier@free.fr>
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; This file is part of GNU Guix.
@@ -3710,6 +3711,32 @@ (define-public raylib
(home-page "https://www.raylib.com/")
(license license:zlib)))

+(define-public raylib-5.5
+ (package
+ (inherit raylib)
+ (name "raylib")
+ (version "5.5")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/raysan5/raylib/")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1dhy9ghbwvz0s434j03rfa2l6wxcfj028vlkk1xbf5q97vin5pr7"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments raylib)
+ ((#:phases current-phases)
+ #~(modify-phases #$current-phases
+ (add-after 'install 'install-parser
+ (lambda _
+ (copy-recursively (string-append #$source "/parser/output")
+ (string-append #$output "/parser/output"))))))))
+ (inputs
+ (modify-inputs (package-inputs raylib)
+ (replace "glfw" glfw-3.4)))))
+
(define-public bbcsdl
(package
(name "bbcsdl")

base-commit: be08c1d70d7d0e396b7fa8ac48d444517b25e33f
--
2.48.1
宋
宋文武 wrote on 10 Mar 20:03 -0700
(address . arnaud.lechevallier@free.fr)(address . 76881-done@debbugs.gnu.org)
87frjkxo88.fsf@envs.net
arnaud.lechevallier@free.fr writes:

Toggle quote (7 lines)
> Hi iyzsong and guix team,
>
> I'm sorry to intervene. I had also planned to update Raylib to 5.5 today. What a coincidence!
>
> Would you consider adding a new phase to this package to provide additional raylib_api files ?
> My proposal is attached for your reference.

Done, thank you! I had install them in "$output/share/raylib".

Toggle quote (4 lines)
>
> This would make it possible to create bindings for other languages. By the way, I proposed this
> patch last year https://issues.guix.gnu.org/74059 to bring Raylib support to guile.

Cool, I could look into that later. Thanks.
Closed
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 76881@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 76881
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch