me
/
guix
Archived
1
0
Fork 0

gnu: sbcl-cl-cffi-gtk-cairo: Link source to parent to reduce closure size.

* gnu/packages/lisp-xyz.scm (sbcl-cl-cffi-gtk-cairo)[arguments]: Replace source
  folder with link to the same folder in the sbcl-cl-cffi-gtk-glib dependency.
master
Pierre Neidhardt 2020-04-28 10:45:05 +02:00
parent 6a7f366864
commit 8f46a9d67f
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 14 additions and 1 deletions

View File

@ -2981,7 +2981,20 @@ is a library for creating graphical user interfaces.")
(substitute* "cairo/cairo.init.lisp"
(("libcairo" all)
(string-append
(assoc-ref inputs "cairo") "/lib/" all))))))))))
(assoc-ref inputs "cairo") "/lib/" all)))))
(add-after 'install 'link-source
;; Since source is particularly heavy (16MiB+), let's reuse it
;; across the different components of cl-ffi-gtk.
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((glib-source (string-append (assoc-ref inputs "cl-cffi-gtk-glib")
"/share/common-lisp/sbcl-source/"
"cl-cffi-gtk-glib"))
(out-source (string-append (assoc-ref outputs "out")
"/share/common-lisp/sbcl-source/"
"cl-cffi-gtk-cairo")))
(delete-file-recursively out-source)
(symlink glib-source out-source)
#t))))))))
(define-public sbcl-cl-cffi-gtk-pango
(package