guix-commits
[Top][All Lists]
Advanced

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

04/04: gnu: texmacs: Install desktop file.


From: guix-commits
Subject: 04/04: gnu: texmacs: Install desktop file.
Date: Thu, 7 Jan 2021 06:09:52 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit d5909136b8ea2fa7cd609c07a81f92bd37b6819f
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Mon Jan 4 19:44:45 2021 +0100

    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>
---
 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 749b93e..81915ca 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -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 @@ 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"



reply via email to

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