gnu: calibre: Install mimetypes.
authorBrendan Tildesley <brendan.tildesley@openmailbox.org>
Fri, 3 Nov 2017 15:44:03 +0000 (02:44 +1100)
committerMarius Bakke <mbakke@fastmail.com>
Sun, 5 Nov 2017 16:24:01 +0000 (17:24 +0100)
* gnu/packages/ebook.scm (calibre)[arguments]: Install mimetypes xml file.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
gnu/packages/ebook.scm

index 659ec57..0eeee09 100644 (file)
                        (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")