From: Paul van der Walt <paul@denknerd.org>
To: guix-devel@gnu.org
Subject: [PATCH 19/21] gnu: Add ghc-sdl-mixer.
Date: Fri, 16 Oct 2015 15:12:03 +0200 [thread overview]
Message-ID: <1445001125-20534-19-git-send-email-paul@denknerd.org> (raw)
In-Reply-To: <1445001125-20534-1-git-send-email-paul@denknerd.org>
* gnu/packages/haskell.scm (ghc-sdl-mixer): New variable.
---
gnu/packages/haskell.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index e8e4e8e..d21f151 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -899,6 +899,48 @@ by MPEG playback software, emulators, and many popular games, including the
award winning Linux port of \"Civilization: Call To Power.\"")
(license bsd-3)))
+(define-public ghc-sdl-mixer
+ (package
+ (name "ghc-sdl-mixer")
+ (version "0.6.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://hackage.haskell.org/package/SDL-mixer/SDL-mixer-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0md3238hx79mxb9a7l43kg3b3d28x4mqvj0hjsbsh15ajnvy9x2z"))))
+ (build-system haskell-build-system)
+ (arguments
+ `(#:configure-flags
+ (let* ((sdl-mixer (assoc-ref %build-inputs "sdl-mixer"))
+ (sdl-mixer-lib (string-append sdl-mixer "/lib"))
+ (sdl-mixer-include (string-append sdl-mixer "/include/SDL")))
+ (list (string-append "--extra-include-dirs=" sdl-mixer-include)
+ (string-append "--extra-lib-dirs=" sdl-mixer-lib)))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before
+ 'configure 'fix-/bin/sh
+ (lambda _
+ ;; Use `sh', not `/bin/sh'.
+ (substitute* (find-files "." "Makefile|configure")
+ (("/bin/sh") "sh")))))))
+ (propagated-inputs
+ `(("sdl-mixer" ,sdl-mixer)
+ ("ghc-sdl" ,ghc-sdl)))
+ (home-page
+ "http://hackage.haskell.org/package/SDL-mixer")
+ (synopsis "Binding to libSDL_mixer")
+ (description "SDL_mixer is a sample multi-channel audio mixer library. It
+supports any number of simultaneously playing channels of 16 bit stereo audio,
+plus a single channel of music, mixed by the popular MikMod MOD, Timidity
+MIDI, Ogg Vorbis, and SMPEG MP3 libraries.")
+ (license bsd-3)))
+
(define-public ghc-half
(package
(name "ghc-half")
--
2.6.1
next prev parent reply other threads:[~2015-10-16 13:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-16 13:11 [PATCH 01/21] gnu: Add ghc-haddock-library Paul van der Walt
2015-10-16 13:11 ` [PATCH 02/21] gnu: Add ghc-haddock-api Paul van der Walt
2015-10-16 13:11 ` [PATCH 03/21] gnu: Add ghc-haddock Paul van der Walt
2015-10-16 13:11 ` [PATCH 04/21] gnu: Add ghc-alex Paul van der Walt
2015-10-16 13:11 ` [PATCH 05/21] gnu: Add ghc-multipart Paul van der Walt
2015-10-16 13:11 ` [PATCH 06/21] gnu: Add ghc-cgi Paul van der Walt
2015-10-16 13:11 ` [PATCH 07/21] gnu: Add ghc-html Paul van der Walt
2015-10-16 13:11 ` [PATCH 08/21] gnu: Add ghc-haskell-src Paul van der Walt
2015-10-16 13:11 ` [PATCH 09/21] gnu: Add ghc-xhtml Paul van der Walt
2015-10-16 13:11 ` [PATCH 10/21] gnu: Add ghc-regex-posix Paul van der Walt
2015-10-16 13:11 ` [PATCH 11/21] gnu: Add ghc-regex-compat Paul van der Walt
2015-10-16 13:11 ` [PATCH 12/21] gnu: Add ghc-half Paul van der Walt
2015-10-16 13:11 ` [PATCH 13/21] gnu: Add ghc-openglraw Paul van der Walt
2015-10-18 18:44 ` Efraim Flashner
2015-10-18 19:01 ` Paul van der Walt
2015-10-16 13:11 ` [PATCH 14/21] gnu: Add ghc-gluraw Paul van der Walt
2015-10-18 18:46 ` Efraim Flashner
2015-10-18 19:13 ` Paul van der Walt
2015-10-16 13:11 ` [PATCH 15/21] gnu: Add ghc-objectname Paul van der Walt
2015-10-16 13:12 ` [PATCH 16/21] gnu: Add ghc-opengl Paul van der Walt
2015-10-16 13:12 ` [PATCH 17/21] gnu: Add ghc-glut Paul van der Walt
2015-10-16 13:12 ` [PATCH 18/21] gnu: Add ghc-sdl Paul van der Walt
2015-10-16 13:12 ` Paul van der Walt [this message]
2015-10-16 13:12 ` [PATCH 20/21] gnu: Add ghc-sdl-image Paul van der Walt
2015-10-16 13:12 ` [PATCH 21/21] gnu: Add raincat platform game Paul van der Walt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1445001125-20534-19-git-send-email-paul@denknerd.org \
--to=paul@denknerd.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.