[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
260/272: gnu: Add ghc-sdl2.
From: |
Ricardo Wurmus |
Subject: |
260/272: gnu: Add ghc-sdl2. |
Date: |
Mon, 1 Oct 2018 06:13:58 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 62dd7171d3fa3df964f34ebb1627704ea447cc21
Author: Ricardo Wurmus <address@hidden>
Date: Fri Sep 28 08:31:11 2018 +0200
gnu: Add ghc-sdl2.
* gnu/packages/sdl.scm (ghc-sdl2): New variable.
---
gnu/packages/sdl.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 55ce45c..a50ed8c 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -33,6 +33,7 @@
#:use-module (guix download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system haskell)
#:use-module (guix build-system trivial)
#:use-module (gnu packages audio)
#:use-module (gnu packages fcitx)
@@ -40,6 +41,7 @@
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages glib)
#:use-module (gnu packages guile)
+ #:use-module (gnu packages haskell)
#:use-module (gnu packages ibus)
#:use-module (gnu packages image)
#:use-module (gnu packages linux)
@@ -520,3 +522,40 @@ sound and device input (keyboards, joysticks, mice,
etc.).")
The bindings are written in pure Scheme using Guile's foreign function
interface.")
(license lgpl3+)))
+
+(define-public ghc-sdl2
+ (package
+ (name "ghc-sdl2")
+ (version "2.4.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://hackage.haskell.org/package/"
+ "sdl2/sdl2-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0p4b12fmxps0sbnkqdfy0qw19s355yrkw7fgw6xz53wzq706k991"))))
+ (build-system haskell-build-system)
+ (arguments '(#:tests? #f)) ; tests require graphical environment
+ (inputs
+ `(("ghc-exceptions" ,ghc-exceptions)
+ ("ghc-linear" ,ghc-linear)
+ ("ghc-statevar" ,ghc-statevar)
+ ("ghc-text" ,ghc-text)
+ ("ghc-vector" ,ghc-vector)
+ ("sdl2" ,sdl2)))
+ (native-inputs
+ `(("ghc-weigh" ,ghc-weigh)
+ ("pkg-config" ,pkg-config)))
+ (home-page "http://hackage.haskell.org/package/sdl2")
+ (synopsis "High- and low-level bindings to the SDL library")
+ (description
+ "This package contains bindings to the SDL 2 library, in both high- and
+low-level forms. The @code{SDL} namespace contains high-level bindings, where
+enumerations are split into sum types, and we perform automatic
+error-checking. The @code{SDL.Raw} namespace contains an almost 1-1
+translation of the C API into Haskell FFI calls. As such, this does not
+contain sum types nor error checking. Thus this namespace is suitable for
+building your own abstraction over SDL, but is not recommended for day-to-day
+programming.")
+ (license bsd-3)))
- 258/272: gnu: Add ghc-weigh., (continued)
- 258/272: gnu: Add ghc-weigh., Ricardo Wurmus, 2018/10/01
- 131/272: gnu: ghc-pem: Update to 0.2.4., Ricardo Wurmus, 2018/10/01
- 183/272: gnu: ghc-tasty-th: Update to 0.1.7., Ricardo Wurmus, 2018/10/01
- 207/272: gnu: ghc-adjunctions: Update to 4.4., Ricardo Wurmus, 2018/10/01
- 213/272: gnu: ghc-rebase: Update to 1.2.4., Ricardo Wurmus, 2018/10/01
- 242/272: gnu: ghc-yesod-core: Update to 1.6.6., Ricardo Wurmus, 2018/10/01
- 230/272: gnu: cabal-install: Update to 2.2.0.0., Ricardo Wurmus, 2018/10/01
- 243/272: gnu: ghc-persistent-sqlite: Update to 2.8.2., Ricardo Wurmus, 2018/10/01
- 247/272: gnu: ghc-haddock-library: Update to 1.5.0.1., Ricardo Wurmus, 2018/10/01
- 257/272: gnu: ghc-tasty-golden: Update to 2.3.2., Ricardo Wurmus, 2018/10/01
- 260/272: gnu: Add ghc-sdl2.,
Ricardo Wurmus <=
- 270/272: gnu: ghc-gnuplot: Fix build., Ricardo Wurmus, 2018/10/01
- 262/272: gnu: Add ghc-sdl2-image., Ricardo Wurmus, 2018/10/01
- 149/272: gnu: ghc-x509: Update to 1.7.3., Ricardo Wurmus, 2018/10/01
- 118/272: gnu: ghc-tasty-hunit: Update to 0.10.0.1., Ricardo Wurmus, 2018/10/01
- 145/272: gnu: Add ghc-memotrie., Ricardo Wurmus, 2018/10/01
- 164/272: gnu: ghc-haskell-src-exts: Update to 1.20.2., Ricardo Wurmus, 2018/10/01
- 169/272: gnu: ghc-socks: Update to 0.5.6., Ricardo Wurmus, 2018/10/01
- 185/272: gnu: ghc-uri-bytestring: Update to 0.3.2.0., Ricardo Wurmus, 2018/10/01
- 199/272: gnu: ghc-xss-sanitize: Update to 0.3.6., Ricardo Wurmus, 2018/10/01
- 211/272: gnu: ghc-wai: Update to 3.2.1.2., Ricardo Wurmus, 2018/10/01