From bf22d0d03843a8a40cff012b08204958aedab0e9 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 6 Jul 2022 12:05:52 +0300 Subject: gnu: txr: Install vim syntax files. * gnu/packages/lisp.scm (txr)[arguments]: Add phase to install vim syntax files. --- gnu/packages/lisp.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 0bb10e4efd..02abdd1e37 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2016, 2017 Nikita ;;; Copyright © 2016, 2017 Andy Patterson ;;; Copyright © 2017, 2019, 2020 Ricardo Wurmus -;;; Copyright © 2017, 2018, 2019 Efraim Flashner +;;; Copyright © 2017-2019, 2022 Efraim Flashner ;;; Copyright © 2017, 2019–2022 Tobias Geerinckx-Rice ;;; Copyright © 2018 Benjamin Slade ;;; Copyright © 2018 Alex Vong @@ -1019,7 +1019,13 @@ the HTML documentation of TXR.") (let ((doc (string-append (assoc-ref outputs "out") "/share/doc/" ,name "-" ,version))) (for-each (lambda (f) (install-file f doc)) - '("txr-manpage.html" "txr-manpage.pdf")))))))) + '("txr-manpage.html" "txr-manpage.pdf"))))) + (add-after 'install 'install-vim-files + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (syntax (string-append out "/share/vim/vimfiles/syntax"))) + (install-file "tl.vim" syntax) + (install-file "txr.vim" syntax))))))) (native-inputs ;; Required to build the documentation. (list ghostscript -- cgit v1.2.1