guix-commits
[Top][All Lists]
Advanced

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

08/08: gnu: calibre: Install mimetypes.


From: Marius Bakke
Subject: 08/08: gnu: calibre: Install mimetypes.
Date: Sun, 5 Nov 2017 11:24:25 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 743d3f650297f73f328b5ca4d3f5d766482db26b
Author: Brendan Tildesley <address@hidden>
Date:   Sat Nov 4 02:44:03 2017 +1100

    gnu: calibre: Install mimetypes.
    
    * gnu/packages/ebook.scm (calibre)[arguments]: Install mimetypes xml file.
    
    Signed-off-by: Marius Bakke <address@hidden>
---
 gnu/packages/ebook.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 659ec57..0eeee09 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -183,6 +183,12 @@
                        (find-files (string-append
                                     (assoc-ref inputs "font-liberation")
                                     "/share/fonts/truetype")))
+             #t))
+         (add-after 'install-font-liberation 'install-mimetypes
+           (lambda* (#:key outputs #:allow-other-keys)
+             (install-file "resources/calibre-mimetypes.xml"
+                           (string-append (assoc-ref outputs "out")
+                                          "/share/mime/packages"))
              #t)))))
     (home-page "http://calibre-ebook.com/";)
     (synopsis "E-book library management software")



reply via email to

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