all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul van der Walt <paul@denknerd.org>
To: guix-devel@gnu.org
Subject: [PATCH 18/21] gnu: Add ghc-sdl.
Date: Fri, 16 Oct 2015 15:12:02 +0200	[thread overview]
Message-ID: <1445001125-20534-18-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): New variable.
---
 gnu/packages/haskell.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 97b518e..e8e4e8e 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)
@@ -862,6 +863,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")
-- 
2.6.1

  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 ` Paul van der Walt [this message]
2015-10-16 13:12 ` [PATCH 19/21] gnu: Add ghc-sdl-mixer Paul van der Walt
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-18-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.