guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: ocaml-merlin: Inherit from ‘ocaml-dot-merlin-reader’.


From: guix-commits
Subject: 02/02: gnu: ocaml-merlin: Inherit from ‘ocaml-dot-merlin-reader’.
Date: Sun, 20 Jun 2021 18:14:22 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit 980c33bd3f16e44a123ef21408a56e59ebb76373
Author: Xinglu Chen <public@yoctocell.xyz>
AuthorDate: Sun Jun 20 16:52:16 2021 +0200

    gnu: ocaml-merlin: Inherit from ‘ocaml-dot-merlin-reader’.
    
    * gnu/packages/ocaml.scm (ocaml-merlin): Inherit from
    ‘ocaml-dot-merlin-reader’, thus also updating it to 4.2-411.
    [version, source, build-system, home-page]: Remove.
    [arguments]<#:phases>: Use custom test phase.
    
    Signed-off-by: Julien Lepiller <julien@lepiller.eu>
---
 gnu/packages/ocaml.scm | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 58b34d4..21d16a4 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4566,21 +4566,16 @@ format}.  @code{craml} is released as a single binary 
(called @code{craml}).")
 
 (define-public ocaml-merlin
   (package
+    (inherit ocaml-dot-merlin-reader)
     (name "ocaml-merlin")
-    (version "3.4.2")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/ocaml/merlin";)
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32
-         "0i2nwkdh6cfzmnsdsr8aw86vs8j1k5jkjzrs61b9384wnffdbbmj"))))
-    (build-system dune-build-system)
-    (arguments '(#:package "merlin"
-                 #:test-target "tests"))
+    (arguments
+     '(#:package "merlin"
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "dune" "runtest" "-p" "merlin,dot-merlin-reader")))))))
     (inputs
      `(("ocaml-yojson" ,ocaml-yojson)
        ("ocaml-csexp" ,ocaml-csexp)
@@ -4589,7 +4584,6 @@ format}.  @code{craml} is released as a single binary 
(called @code{craml}).")
      `(("ocaml-dot-merlin-reader" ,ocaml-dot-merlin-reader) ; required for 
tests
        ("ocaml-mdx" ,ocaml-mdx)
        ("jq" ,jq)))
-    (home-page "https://ocaml.github.io/merlin/";)
     (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
     (description "Merlin is an editor service that provides modern IDE
 features for OCaml.  Emacs and Vim support is provided out-of-the-box.



reply via email to

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