gnu: Add sdl2-net.

* gnu/packages/sdl.scm (sdl2-net): New variable.
This commit is contained in:
Nicolas Goaziou 2019-04-23 14:24:12 +02:00
parent 6b99afeef8
commit 1a8984536f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -8,6 +8,7 @@
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net> ;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -403,6 +404,22 @@ (define-public sdl2-mixer
(propagated-inputs (propagated-inputs
(propagated-inputs-with-sdl2 sdl-mixer)))) (propagated-inputs-with-sdl2 sdl-mixer))))
(define-public sdl2-net
(package (inherit sdl-net)
(name "sdl2-net")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri
(string-append "http://www.libsdl.org/projects/SDL_net/release/"
"SDL2_net-" version ".tar.gz"))
(sha256
(base32
"08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm"))))
(propagated-inputs
(propagated-inputs-with-sdl2 sdl-net))))
(define-public sdl2-ttf (define-public sdl2-ttf
(package (inherit sdl-ttf) (package (inherit sdl-ttf)
(name "sdl2-ttf") (name "sdl2-ttf")