[bug#69610,1/3] gnu: Add sdl2-mixer-x.
Commit Message
From d48e05d0d7c25d080a72e37debd4a72ec5077375 Mon Sep 17 00:00:00 2001
Message-ID: <d48e05d0d7c25d080a72e37debd4a72ec5077375.1709814572.git.adam.faiz@disroot.org>
In-Reply-To: <cover.1709814572.git.adam.faiz@disroot.org>
References: <cover.1709814572.git.adam.faiz@disroot.org>
From: AwesomeAdam54321 <adam.faiz@disroot.org>
Date: Thu, 7 Mar 2024 14:07:15 +0800
Subject: [PATCH 1/3] gnu: Add sdl2-mixer-x.
* gnu/packages/sdl.scm (sdl2-mixer-x): New variable.
---
gnu/packages/sdl.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
Comments
Am Donnerstag, dem 07.03.2024 um 20:39 +0800 schrieb Adam Faiz:
> From d48e05d0d7c25d080a72e37debd4a72ec5077375 Mon Sep 17 00:00:00
> 2001
> Message-ID:
> <d48e05d0d7c25d080a72e37debd4a72ec5077375.1709814572.git.adam.faiz@di
> sroot.org>
> In-Reply-To: <cover.1709814572.git.adam.faiz@disroot.org>
> References: <cover.1709814572.git.adam.faiz@disroot.org>
> From: AwesomeAdam54321 <adam.faiz@disroot.org>
> Date: Thu, 7 Mar 2024 14:07:15 +0800
> Subject: [PATCH 1/3] gnu: Add sdl2-mixer-x.
>
> * gnu/packages/sdl.scm (sdl2-mixer-x): New variable.
> ---
> gnu/packages/sdl.scm | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
> index 3a4aafcaa7..35351c70a2 100644
> --- a/gnu/packages/sdl.scm
> +++ b/gnu/packages/sdl.scm
> @@ -528,6 +528,25 @@ (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"))))
> + (arguments
> + (list #:tests? #f ;no tests
> + #:configure-flags
> + #~(list "-DBUILD_SHARED_LIBS=ON")))
> + (build-system cmake-build-system)))
> +
Build system ought to go before arguments.
I know sdl is kinda weirdly formatted, but put the (inherit …) on a
separate line.
Cheers
@@ -528,6 +528,25 @@ (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"))))
+ (arguments
+ (list #:tests? #f ;no tests
+ #:configure-flags
+ #~(list "-DBUILD_SHARED_LIBS=ON")))
+ (build-system cmake-build-system)))
+
(define-public sdl2-net
(package (inherit sdl-net)
(name "sdl2-net")