guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: Add ghc-libffi.


From: guix-commits
Subject: 02/04: gnu: Add ghc-libffi.
Date: Thu, 11 Apr 2019 20:52:26 -0400 (EDT)

bavier pushed a commit to branch master
in repository guix.

commit fb038f32ae7860936b0fa85035a1d020597919d2
Author: Eric Bavier <address@hidden>
Date:   Thu Apr 11 19:27:29 2019 -0500

    gnu: Add ghc-libffi.
    
    * gnu/packages/haskell.scm (ghc-libffi): New variable.
---
 gnu/packages/haskell.scm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index a23dfe9..3d269ce 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2015, 2016 Federico Beffa <address@hidden>
 ;;; Copyright © 2015 Siniša Biđin <address@hidden>
 ;;; Copyright © 2015 Paul van der Walt <address@hidden>
-;;; Copyright © 2015 Eric Bavier <address@hidden>
+;;; Copyright © 2015, 2019 Eric Bavier <address@hidden>
 ;;; Copyright © 2016, 2018, 2019 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2016, 2017 ng0 <address@hidden>
 ;;; Copyright © 2016 Efraim Flashner <address@hidden>
@@ -833,6 +833,28 @@ code pages on Windows.  On all other operating systems, 
the library does
 nothing.")
   (license license:bsd-3)))
 
+(define-public ghc-libffi
+  (package
+    (name "ghc-libffi")
+    (version "0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://hackage.haskell.org/package/";
+                           "libffi/libffi-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0g7jnhng3j7z5517aaqga0144aamibsbpgm3yynwyfzkq1kp0f28"))))
+    (build-system haskell-build-system)
+    (native-inputs `(("pkg-config" ,pkg-config)))
+    (inputs `(("libffi" ,libffi)))
+    (home-page "http://hackage.haskell.org/package/libffi";)
+    (synopsis "Haskell binding to libffi")
+    (description
+     "A binding to libffi, allowing C functions of types only known at runtime
+to be called from Haskell.")
+    (license license:bsd-3)))
+
 (define-public ghc-newtype-generics
   (package
     (name "ghc-newtype-generics")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]