mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
gnu: sbcl-cl-cffi-gtk-gio: Link source to parent to reduce closure size.
* gnu/packages/lisp-xyz.scm (sbcl-cl-cffi-gtk-gio)[arguments]: Replace source folder with link to the same folder in the sbcl-cl-cffi-gtk-glib dependency.
This commit is contained in:
parent
eac71f54fe
commit
6a7f366864
1 changed files with 14 additions and 1 deletions
|
@ -2949,7 +2949,20 @@ (define-public sbcl-cl-cffi-gtk-gio
|
|||
(substitute* "gio/gio.init.lisp"
|
||||
(("libgio" all)
|
||||
(string-append
|
||||
(assoc-ref inputs "glib") "/lib/" all))))))))))
|
||||
(assoc-ref inputs "glib") "/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-gio")))
|
||||
(delete-file-recursively out-source)
|
||||
(symlink glib-source out-source)
|
||||
#t))))))))
|
||||
|
||||
(define-public sbcl-cl-cffi-gtk-cairo
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue