@@ -43,6 +43,7 @@ (define-module (gnu packages sdl)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system copy)
#:use-module (guix build-system gnu)
#:use-module (guix build-system trivial)
@@ -528,6 +529,26 @@ (define-public sdl2-mixer
(append flac fluidsynth libmodplug libvorbis mpg123 opusfile)))
(properties '((upstream-name . "SDL2_mixer")))))
+(define-public sdl2-mixer-x
+ (package
+ (inherit sdl2-mixer)
+ (name "sdl2-mixer-x")
+ (version "2.6.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/WohlSoft/SDL-Mixer-X")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "17l0l89q4az6lmmvpqpymjgs64nc52r140301dcf54vsh76mzd2c"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:tests? #f ;no tests
+ #:configure-flags
+ #~(list "-DBUILD_SHARED_LIBS=ON")))))
+
(define-public sdl2-net
(package (inherit sdl-net)
(name "sdl2-net")
From d136acd202005516594e5576d5a88118e76f47bf Mon Sep 17 00:00:00 2001 Message-ID: <d136acd202005516594e5576d5a88118e76f47bf.1709863861.git.adam.faiz@disroot.org> From: AwesomeAdam54321 <adam.faiz@disroot.org> Date: Thu, 7 Mar 2024 14:07:15 +0800 Subject: [PATCH v2 1/3] gnu: Add sdl2-mixer-x. * gnu/packages/sdl.scm (sdl2-mixer-x): New variable. --- gnu/packages/sdl.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) base-commit: f18d13b5f89c161c6ee88d15ecdaa8d973ee4503