gnu: texmacs: Install desktop file.

* gnu/packages/text-editors.scm (texmacs)[arguments]: Add
  ‘install-desktop-file’ phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Maxime Devos 2021-01-04 19:44:45 +01:00 committed by Ludovic Courtès
parent c356c751e2
commit d5909136b8
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -12,6 +12,7 @@
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Tom Zander <tomz@freedommail.ch>
;;; Copyright © 2020 Mark Meyer <mark@ofosos.org>
;;; Copyright © 2020 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@ -788,6 +789,14 @@ (define-public texmacs
(("/usr/share")
(string-append out "/share")))
#t)))
(add-after 'install 'install-desktop-file
(lambda* (#:key outputs #:allow-other-keys)
;; Install desktop file.
(let* ((out (assoc-ref outputs "out"))
(apps (string-append out "/share/applications"))
(source "TeXmacs/misc/mime/texmacs.desktop"))
(install-file source apps)
#t)))
(add-before 'configure 'gzip-flags
(lambda _
(substitute* "Makefile.in"