summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2018-10-19 16:53:38 +0200
committerPierre Neidhardt <mail@ambrevar.xyz>2018-10-19 17:56:37 +0200
commit7176fe7c328f0b4778b5f600c563c8073d16b135 (patch)
treef3cb05500cfb536f2b037f99dd88d926dbaffc0a /gnu
parent867b3f4780e293585d30585bb49473d7309b66ac (diff)
downloadguix-7176fe7c328f0b4778b5f600c563c8073d16b135.tar.gz
gnu: Add sbcl-cl-cffi-gtk-cairo.
* gnu/packages/lisp.scm (sbcl-cl-cffi-gtk-cairo): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/lisp.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 70282e4cb5..ac694e3e7e 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -3338,3 +3338,22 @@ is a library for creating graphical user interfaces.")
                (("libgio" all)
                 (string-append
                  (assoc-ref inputs "glib") "/lib/" all))))))))))
+
+(define-public sbcl-cl-cffi-gtk-cairo
+  (package
+    (inherit sbcl-cl-cffi-gtk-boot0)
+    (name "sbcl-cl-cffi-gtk-cairo")
+    (inputs
+     `(("cairo" ,cairo)
+       ("cl-cffi-gtk-glib" ,sbcl-cl-cffi-gtk-glib)
+       ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
+    (arguments
+     `(#:asd-file "cairo/cl-cffi-gtk-cairo.asd"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "cairo/cairo.init.lisp"
+               (("libcairo" all)
+                (string-append
+                 (assoc-ref inputs "cairo") "/lib/" all))))))))))