[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
149/154: gnu: Add ghc-sdl.
From: |
Paul |
Subject: |
149/154: gnu: Add ghc-sdl. |
Date: |
Thu, 22 Oct 2015 13:52:44 +0000 |
toothbrush pushed a commit to branch wip-haskell-platform-7.10.2-a
in repository guix.
commit 54c0ed47a799f2dd24f0cd8550d7fdc2d41b6586
Author: Paul van der Walt <address@hidden>
Date: Fri Oct 16 14:53:49 2015 +0200
gnu: Add ghc-sdl.
* gnu/packages/haskell.scm (ghc-sdl): New variable.
---
gnu/packages/haskell.scm | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index c41f767..a9948da 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -31,6 +31,7 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages elf)
#:use-module (gnu packages gl)
+ #:use-module (gnu packages sdl)
#:use-module (gnu packages bootstrap)
#:use-module (gnu packages zip)
#:use-module (gnu packages gcc)
@@ -849,6 +850,42 @@ objects, e.g. a texture object name in OpenGL or a buffer
object name in
OpenAL.")
(license bsd-3)))
+(define-public ghc-sdl
+ (package
+ (name "ghc-sdl")
+ (version "0.6.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://hackage.haskell.org/package/SDL/SDL-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1sa3zx3vrs1gbinxx33zwq0x2bsf3i964bff7419p7vzidn36k46"))))
+ (build-system haskell-build-system)
+ (arguments
+ `(#: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")))))))
+ (inputs
+ `(("sdl" ,sdl)))
+ (home-page "https://hackage.haskell.org/package/SDL")
+ (synopsis "LibSDL for Haskell")
+ (description "Simple DirectMedia Layer (libSDL) is a cross-platform
+multimedia library designed to provide low level access to audio, keyboard,
+mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used
+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-half
(package
(name "ghc-half")
- 132/154: gnu: Add ghc-haddock-library., (continued)
- 132/154: gnu: Add ghc-haddock-library., Paul, 2015/10/22
- 133/154: gnu: Add ghc-haddock-api., Paul, 2015/10/22
- 131/154: gnu: Add Idris, the dependently-typed language., Paul, 2015/10/22
- 134/154: gnu: Add ghc-haddock., 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
- 136/154: gnu: Add ghc-multipart., Paul, 2015/10/22
- 143/154: gnu: Add ghc-half., Paul, 2015/10/22
- 145/154: gnu: Add ghc-gluraw., Paul, 2015/10/22
- 147/154: gnu: Add ghc-opengl., Paul, 2015/10/22
- 149/154: gnu: Add ghc-sdl.,
Paul <=
- 142/154: gnu: Add ghc-regex-compat., Paul, 2015/10/22
- 137/154: gnu: Add ghc-cgi., Paul, 2015/10/22
- 144/154: gnu: Add ghc-openglraw., Paul, 2015/10/22
- 146/154: gnu: Add ghc-objectname., Paul, 2015/10/22
- 150/154: gnu: Add ghc-sdl-mixer., Paul, 2015/10/22
- 148/154: gnu: Add ghc-glut., Paul, 2015/10/22
- 154/154: import: hackage: Fix grammar., Paul, 2015/10/22
- 153/154: import: hackage: Update GHC libraries for 7.10.2., Paul, 2015/10/22
- 151/154: gnu: Add ghc-sdl-image., Paul, 2015/10/22
- 152/154: gnu: Add raincat platform game., Paul, 2015/10/22