guix-more/more/packages/vim.scm

vim.scm

1
;;; GNU Guix --- Functional package management for GNU
2
;;; Copyright © 2019 Kei Julien Lepiller <julien@lepiller.eu>
3
;;;
4
;;; This file is part of GNU Guix.
5
;;;
6
;;; GNU Guix is free software; you can redistribute it and/or modify it
7
;;; under the terms of the GNU General Public License as published by
8
;;; the Free Software Foundation; either version 3 of the License, or (at
9
;;; your option) any later version.
10
;;;
11
;;; GNU Guix is distributed in the hope that it will be useful, but
12
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
;;; GNU General Public License for more details.
15
;;;
16
;;; You should have received a copy of the GNU General Public License
17
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
18
19
(define-module (more packages vim)
20
  #:use-module (guix packages)
21
  #:use-module (guix download)
22
  #:use-module (guix git-download)
23
  #:use-module (guix build-system gnu)
24
  #:use-module (gnu packages)
25
  #:use-module (more packages python)
26
  #:use-module ((guix licenses) #:prefix license:))
27
28
(define-public neovim-coquille
29
  (package
30
    (name "neovim-coquille")
31
    (version "0")
32
    (source (origin
33
              (method git-fetch)
34
              (uri (git-reference
35
                     (url "https://framagit.org/tyreunom/coquille.git")
36
                     (commit "6a7833312fe6156df568815ff1b4bae9241fd4a3")))
37
              (file-name (git-file-name name version))
38
              (sha256
39
               (base32
40
                "0gmlb9g29cky8acr0zq9fy7r7lp9jvp6sik3srmggrsbmf2wzng1"))))
41
    (build-system gnu-build-system)
42
    (arguments
43
     `(#:tests? #f
44
       #:phases
45
       (modify-phases %standard-phases
46
         (delete 'configure)
47
         (delete 'build)
48
         (replace 'install
49
           (lambda* (#:key outputs #:allow-other-keys)
50
             (let* ((out (assoc-ref outputs "out"))
51
                    (nvim (string-append out "/share/nvim/site/coquille")))
52
               (delete-file ".travis.yml")
53
               (delete-file ".gitignore")
54
               (for-each
55
                 (lambda (file)
56
                   (install-file file (string-append nvim "/" (dirname file))))
57
                 (find-files "." ".")))
58
             #t)))))
59
    (propagated-inputs
60
     `(("python-neovim" ,python-neovim)))
61
    (home-page "https://framagit.org/tyreunom/coquille")
62
    (synopsis "")
63
    (description "")
64
    (license license:expat)))
65