[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
149/153: gnu: Add ghc-sdl-mixer.
From: |
Paul |
Subject: |
149/153: gnu: Add ghc-sdl-mixer. |
Date: |
Wed, 21 Oct 2015 20:51:13 +0000 |
toothbrush pushed a commit to branch wip-haskell-platform-7.10.2-a
in repository guix.
commit e7c435f30fc0e2f14db2b2ddaab46717bdc6f615
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 | 42 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 161b3e5..914c518 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -894,6 +894,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")
- 132/153: gnu: Add ghc-haddock-api., (continued)
- 132/153: gnu: Add ghc-haddock-api., Paul, 2015/10/21
- 123/153: gnu: Add ghc-wai-logger., Paul, 2015/10/21
- 115/153: gnu: Add ghc-haskell-src-exts., Paul, 2015/10/21
- 124/153: gnu: Add ghc-wai-extra., Paul, 2015/10/21
- 151/153: gnu: Add raincat platform game., Paul, 2015/10/21
- 144/153: gnu: Add ghc-gluraw., Paul, 2015/10/21
- 145/153: gnu: Add ghc-objectname., Paul, 2015/10/21
- 146/153: gnu: Add ghc-opengl., Paul, 2015/10/21
- 147/153: gnu: Add ghc-glut., Paul, 2015/10/21
- 153/153: import: hackage: Fix grammar., Paul, 2015/10/21
- 149/153: gnu: Add ghc-sdl-mixer.,
Paul <=
- 130/153: gnu: Add Idris, the dependently-typed language., Paul, 2015/10/21
- 138/153: gnu: Add ghc-haskell-src., Paul, 2015/10/21
- 137/153: gnu: Add ghc-html., Paul, 2015/10/21
- 142/153: gnu: Add ghc-half., Paul, 2015/10/21
- 141/153: gnu: Add ghc-regex-compat., Paul, 2015/10/21
- 140/153: gnu: Add ghc-regex-posix., Paul, 2015/10/21
- 143/153: gnu: Add ghc-openglraw., Paul, 2015/10/21
- 148/153: gnu: Add ghc-sdl., Paul, 2015/10/21
- 152/153: import: hackage: Update GHC libraries for 7.10.2., Paul, 2015/10/21
- 150/153: gnu: Add ghc-sdl-image., Paul, 2015/10/21