From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul van der Walt Subject: [PATCH 18/21] gnu: Add ghc-sdl. Date: Fri, 16 Oct 2015 15:12:02 +0200 Message-ID: <1445001125-20534-18-git-send-email-paul@denknerd.org> References: <1445001125-20534-1-git-send-email-paul@denknerd.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn4o8-0004g3-OK for guix-devel@gnu.org; Fri, 16 Oct 2015 09:12:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn4o7-0002dL-JL for guix-devel@gnu.org; Fri, 16 Oct 2015 09:12:28 -0400 Received: from mx01.mykolab.com ([95.128.36.1]:8782 helo=mx-out03.mykolab.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn4o7-0002cV-Db for guix-devel@gnu.org; Fri, 16 Oct 2015 09:12:27 -0400 Received: from mx08.mykolab.com (unknown [10.20.7.48]) by mx-out03.mykolab.com (Postfix) with ESMTPS id 7DDF224246 for ; Fri, 16 Oct 2015 15:12:25 +0200 (CEST) In-Reply-To: <1445001125-20534-1-git-send-email-paul@denknerd.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.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