[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: gnu: sbcl-cl-cffi-gtk-pango: Link source to parent to reduce clos
From: |
guix-commits |
Subject: |
05/09: gnu: sbcl-cl-cffi-gtk-pango: Link source to parent to reduce closure size. |
Date: |
Tue, 28 Apr 2020 05:50:26 -0400 (EDT) |
ambrevar pushed a commit to branch master
in repository guix.
commit d27f033f97ab7a71e0a3af004d3e11bea9374676
Author: Pierre Neidhardt <address@hidden>
AuthorDate: Tue Apr 28 10:45:18 2020 +0200
gnu: sbcl-cl-cffi-gtk-pango: Link source to parent to reduce closure size.
* gnu/packages/lisp-xyz.scm (sbcl-cl-cffi-gtk-pango)[arguments]: Replace
source
folder with link to the same folder in the sbcl-cl-cffi-gtk-glib
dependency.
---
gnu/packages/lisp-xyz.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index e938bd6..b2b5e00 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -3015,7 +3015,20 @@ is a library for creating graphical user interfaces.")
(substitute* "pango/pango.init.lisp"
(("libpango" all)
(string-append
- (assoc-ref inputs "pango") "/lib/" all))))))))))
+ (assoc-ref inputs "pango") "/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-pango")))
+ (delete-file-recursively out-source)
+ (symlink glib-source out-source)
+ #t))))))))
(define-public sbcl-cl-cffi-gtk-gdk-pixbuf
(package
- branch master updated (62d45e4 -> 8ac4be5), guix-commits, 2020/04/28
- 03/09: gnu: sbcl-cl-cffi-gtk-gio: Link source to parent to reduce closure size., guix-commits, 2020/04/28
- 04/09: gnu: sbcl-cl-cffi-gtk-cairo: Link source to parent to reduce closure size., guix-commits, 2020/04/28
- 07/09: gnu: sbcl-cl-cffi-gtk-gdk: Link source to parent to reduce closure size., guix-commits, 2020/04/28
- 08/09: gnu: sbcl-cl-cffi-gtk: Link source to parent to reduce closure size., guix-commits, 2020/04/28
- 06/09: gnu: sbcl-cl-cffi-gtk-gdk-pixbuf: Link source to parent to reduce closure size., guix-commits, 2020/04/28
- 02/09: gnu: sbcl-cl-cffi-gtk-gobject: Link source to parent to reduce closure size., guix-commits, 2020/04/28
- 01/09: gnu: Add emacs-trashed., guix-commits, 2020/04/28
- 05/09: gnu: sbcl-cl-cffi-gtk-pango: Link source to parent to reduce closure size.,
guix-commits <=
- 09/09: gnu: ecl: Update to 20.4.24., guix-commits, 2020/04/28