summary refs log tree commit diff
path: root/gnu/packages/sdl.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-10-02 23:15:55 +0200
committerLudovic Courtès <ludo@gnu.org>2022-10-02 23:18:42 +0200
commit782c7455e1ea3785e8c7e9b300d55c9ebb441a35 (patch)
tree3d63b67fa4eeba8c82e96035df132ef6e2d53a23 /gnu/packages/sdl.scm
parent4bd75d79e5ad8bb0f6cdcc0d15b9afb25f54afbd (diff)
downloadguix-782c7455e1ea3785e8c7e9b300d55c9ebb441a35.tar.gz
gnu: ffmpeg@4: Build against SDL2 2.0 so 'ffplay' gets built.
Fixes <https://issues.guix.gnu.org/58090>.
Reported by Zhu Zihao <all_but_last@163.com>.

* gnu/packages/sdl.scm (sdl2-2.0): New variable.
* gnu/packages/video.scm (ffmpeg-4)[inputs]: New field.
Diffstat (limited to 'gnu/packages/sdl.scm')
-rw-r--r--gnu/packages/sdl.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 2523889a8d..2a10ff3962 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -155,6 +155,20 @@ joystick, and graphics hardware.")
                wayland-protocols)))
     (license license:bsd-3)))
 
+(define-public sdl2-2.0
+  (package
+    (inherit sdl2)
+    (name "sdl2")
+    (version "2.0.14")
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append "https://libsdl.org/release/SDL2-"
+                              version ".tar.gz"))
+              (sha256
+               (base32
+                "1g1jahknv5r4yhh1xq5sf0md20ybdw1zh1i15lry26sq39bmn8fq"))))))
+
 (define-public libmikmod
   (package
     (name "libmikmod")