summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Conroy <jconroy@tscripta.net>2026-05-08 11:46:35 -0400
committerJulien Lepiller <julien@lepiller.eu>2026-05-10 15:49:38 +0200
commita56906881ea7144fb6d89e2bd9e2834288a568b3 (patch)
treebece7ba432f02bcc5ce17ca009711b680f30f8bc
parent7fa155d2e96a7425f10c2c5cbaf01ebf5a320c98 (diff)
gnu: ocaml5: Add %ocaml-lev-base.
* gnu/packages/ocaml5.scm (%ocaml-lev-base): New variable. Change-Id: I4093e857d77f8bd77b95b35acac34344a234a81a Signed-off-by: Julien Lepiller <julien@lepiller.eu>
-rw-r--r--gnu/packages/ocaml5.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index c5332bb108c..dd89730ae2f 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -3999,6 +3999,43 @@ tools such as Merlin to perform project-wide occurrences queries.")))
3999 ocaml-ppxlib ocaml-mdx jq)) 3999 ocaml-ppxlib ocaml-mdx jq))
4000 (license license:expat))) 4000 (license license:expat)))
4001 4001
4002;; Base definition for a set of packages used only by ocaml-lsp, originally
4003;; via a submodule.
4004(define %ocaml-lev-base
4005 (let ((commit
4006 ;; Pin the repo to match the submodule.
4007 "9258b71a2880de89762bcfac0b281979a58a2aa6")
4008 (revision "0"))
4009 (package
4010 (name "ocaml5-lev-base")
4011 (version (git-version "0" revision commit))
4012 (home-page "https://github.com/rgrinberg/lev")
4013 (source
4014 (origin
4015 (method git-fetch)
4016 (uri (git-reference
4017 (url home-page)
4018 (commit commit)))
4019 (file-name (git-file-name name version))
4020 (sha256
4021 (base32 "1403dbbayq1sazvvrd64bda4civ4xwvagclq4fbf5nhraga57bc4"))
4022 (snippet
4023 #~(begin (use-modules (guix build utils))
4024 (substitute* "lev/src/dune"
4025 (("foreign_stubs")
4026 (string-append "foreign_stubs "
4027 "(flags :standard "
4028 "-Wno-implicit-function-declaration)")))))))
4029 (build-system dune-build-system)
4030 ;; Tests seem to depend on an obsolete version of ppx_expect.
4031 (arguments '(#:tests? #f))
4032 (properties '((hidden? . #t)))
4033 (synopsis "OCaml Bindings to libev")
4034 (description
4035 "This package provides low-level bindings to libev, currently used only by
4036ocaml-lsp.")
4037 (license license:expat))))
4038
4002(define-public ocaml-qcheck 4039(define-public ocaml-qcheck
4003 (package 4040 (package
4004 (name "ocaml5-qcheck") 4041 (name "ocaml5-qcheck")