[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
150/154: gnu: Add ghc-sdl-mixer.
From: |
Paul |
Subject: |
150/154: gnu: Add ghc-sdl-mixer. |
Date: |
Thu, 22 Oct 2015 16:16:11 +0000 |
toothbrush pushed a commit to branch wip-haskell-platform-7.10.2-a
in repository guix.
commit 21b889239bd2ffd190aff56931c0d94302ba40db
Author: Paul van der Walt <address@hidden>
Date: Fri Oct 16 14:55:05 2015 +0200
gnu: Add ghc-sdl-mixer.
* gnu/packages/haskell.scm (ghc-sdl-mixer): New variable.
---
gnu/packages/haskell.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index b696460..c1ec6cd 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -884,6 +884,45 @@ 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-include (string-append sdl-mixer "/include/SDL")))
+ (list (string-append "--extra-include-dirs=" sdl-mixer-include)))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after
+ 'unpack 'fix-/bin/sh
+ (lambda _
+ ;; Use `sh', not `/bin/sh'.
+ (setenv "CONFIG_SHELL" "sh"))))))
+ (propagated-inputs
+ `(("ghc-sdl" ,ghc-sdl)))
+ (inputs
+ `(("sdl-mixer" ,sdl-mixer)))
+ (home-page "http://hackage.haskell.org/package/SDL-mixer")
+ (synopsis "Haskell bindings 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")
- 142/154: gnu: Add ghc-regex-compat., (continued)
- 142/154: gnu: Add ghc-regex-compat., Paul, 2015/10/22
- 139/154: gnu: Add ghc-haskell-src., Paul, 2015/10/22
- 140/154: gnu: Add ghc-xhtml., Paul, 2015/10/22
- 152/154: gnu: Add Raincat., Paul, 2015/10/22
- 129/154: gnu: Add ghc-cheapskate., Paul, 2015/10/22
- 128/154: gnu: Add ghc-lens., Paul, 2015/10/22
- 126/154: gnu: Add ghc-vector-binary-instances., Paul, 2015/10/22
- 146/154: gnu: Add ghc-objectname., Paul, 2015/10/22
- 149/154: gnu: Add ghc-sdl., Paul, 2015/10/22
- 151/154: gnu: Add ghc-sdl-image., Paul, 2015/10/22
- 150/154: gnu: Add ghc-sdl-mixer.,
Paul <=
- 145/154: gnu: Add ghc-gluraw., Paul, 2015/10/22
- 147/154: gnu: Add ghc-opengl., Paul, 2015/10/22