summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2018-10-19 16:52:22 +0200
committerPierre Neidhardt <mail@ambrevar.xyz>2018-10-19 17:56:37 +0200
commit64dcf7d99b09805b8e8888051fe47a981ff9dba6 (patch)
tree4c8580961808c89a9fadc60770465268f6006842 /gnu
parentc88985d9b062790be45b588bf65d4876c2ad96ac (diff)
downloadguix-64dcf7d99b09805b8e8888051fe47a981ff9dba6.tar.gz
gnu: Add sbcl-cl-cffi-gtk-glib.
* gnu/packages/lisp.scm (sbcl-cl-cffi-gtk-glib): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/lisp.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index a4b64fc0fe..6ba678961c 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -63,6 +63,7 @@
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages databases)
+  #:use-module (gnu packages gtk)
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-19))
@@ -3279,3 +3280,20 @@ Lisp implementations.")
        "@command{cl-cffi-gtk} is a Lisp binding to GTK+ 3 (GIMP Toolkit) which
 is a library for creating graphical user interfaces.")
       (license license:lgpl3))))
+
+(define-public sbcl-cl-cffi-gtk-glib
+  (package
+    (inherit sbcl-cl-cffi-gtk-boot0)
+    (name "sbcl-cl-cffi-gtk-glib")
+    (inputs
+     `(("glib" ,glib)
+       ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
+    (arguments
+     `(#:asd-file "glib/cl-cffi-gtk-glib.asd"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "glib/glib.init.lisp"
+               (("libglib|libgthread" all) (string-append
+                                            (assoc-ref inputs "glib") "/lib/" all))))))))))