From d5909136b8ea2fa7cd609c07a81f92bd37b6819f Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Mon, 4 Jan 2021 19:44:45 +0100 Subject: gnu: texmacs: Install desktop file. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/text-editors.scm (texmacs)[arguments]: Add ‘install-desktop-file’ phase. Signed-off-by: Ludovic Courtès --- gnu/packages/text-editors.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 749b93e29f..81915ca52b 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Tom Zander ;;; Copyright © 2020 Mark Meyer +;;; Copyright © 2020 Maxime Devos ;;; ;;; This file is part of GNU Guix. ;;; @@ -788,6 +789,14 @@ editors.") (("/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" -- cgit v1.2.3