diff options
author | Maxime Devos <maximedevos@telenet.be> | 2021-01-04 19:44:45 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-01-07 12:08:41 +0100 |
commit | d5909136b8ea2fa7cd609c07a81f92bd37b6819f (patch) | |
tree | 1088b029cbbf27ec596d3ec7c26e20dec58c8161 /gnu | |
parent | c356c751e2e21d7cbe88eb0563961f0c00a364fb (diff) | |
download | guix-d5909136b8ea2fa7cd609c07a81f92bd37b6819f.tar.gz |
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>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/text-editors.scm | 9 |
1 files changed, 9 insertions, 0 deletions
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 <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" |