guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: Add librsvg-bootstrap.


From: guix-commits
Subject: 02/04: gnu: Add librsvg-bootstrap.
Date: Sun, 12 Dec 2021 08:20:03 -0500 (EST)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit 801f1a7c2993e44384487241c8b44e870c05a09a
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Nov 14 16:03:19 2021 +0200

    gnu: Add librsvg-bootstrap.
    
    * gnu/packages/gnome.scm (librsvg-bootstrap): New variable.
---
 gnu/packages/gnome.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 596745f..404c0e4 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -3632,6 +3632,34 @@ diagrams.")
     (home-page "https://wiki.gnome.org/LibRsvg";)
     (license license:lgpl2.1+)))
 
+;; This copy of librsvg uses the bundled rust libraries. It is useful for
+;; packages which have too many dependencies to be rebuilt as frequently
+;; as the rust inputs are updated.
+;; TODO: Remove this package and use packaged rust libraries!
+(define-public librsvg-bootstrap
+  (package
+    (inherit librsvg)
+    (name "librsvg")
+    (version "2.50.7")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/librsvg/"
+                                  (version-major+minor version)  "/"
+                                  "librsvg-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1g3f8byg5w08fx1bka12mmpl59v6a4q2p827w6m2la6mijq63yzz"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  (for-each delete-file (find-files "vendor" "\\.a$"))))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments librsvg)
+       ((#:vendor-dir _ "vendor") "vendor")
+       ((#:cargo-inputs _) '())
+       ((#:cargo-development-inputs _) '())))
+    (properties '((hidden? . #t)))))
+
 (define-public librsvg-2.40
   ;; This is the last version implemented in C.
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]