guix-commits
[Top][All Lists]
Advanced

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

14/45: gnu: Add aliases for ocaml-cstruct and ocaml-lwt subpackages.


From: guix-commits
Subject: 14/45: gnu: Add aliases for ocaml-cstruct and ocaml-lwt subpackages.
Date: Fri, 17 Feb 2023 10:49:32 -0500 (EST)

cbaines pushed a commit to branch master
in repository guix.

commit 74560bf3c3b1f373f2d10f71042beb97680f34f9
Author: raingloom <raingloom@riseup.net>
AuthorDate: Wed Feb 15 23:00:03 2023 +0100

    gnu: Add aliases for ocaml-cstruct and ocaml-lwt subpackages.
    
    * gnu/packages/ocaml.scm (ocaml-lwt-ppx ocaml-cstruct-unix
      ocaml-cstruct-sexp): New variables.
    
    Signed-off-by: Christopher Baines <mail@cbaines.net>
---
 gnu/packages/ocaml.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 6abd38e1ad..9069b320e9 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2963,6 +2963,11 @@ process.  Also, in many cases, Lwt threads can interact 
without the need for
 locks or other synchronization primitives.")
     (license license:lgpl2.1)))
 
+;; TODO this alias is not ideal but ocaml-lwt already explicitly specifies a
+;; package argument and at least this way the importer doesn't try to
+;; re-import it.
+(define ocaml-lwt-ppx ocaml-lwt)
+
 (define-public ocaml-lwt-dllist
   (package
     (name "ocaml-lwt-dllist")
@@ -4451,6 +4456,12 @@ writing to these structures, and they are accessed via 
the Bigarray module.")
                   "0jj3whs8r3jc524i9bb67rffh7y7r157hjgvws0bkxijxpjzwkbk"))))
       (properties '()))))
 
+;; TODO again, the "parent" package already has an explicit package argument,
+;; so a variant package doesn't make sense, at least these aliases help the
+;; importer out so it doesn't re-import things.  At least hopefully.
+(define ocaml-cstruct-unix ocaml-cstruct)
+(define ocaml-cstruct-sexp ocaml-cstruct)
+
 (define-public ocaml-hex
   (package
     (name "ocaml-hex")



reply via email to

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