Subject: [bug#64249] [PATCH v9 27/34] gnu: Add dune-ordering.

From: Julien Lepiller <[email-masked]>
Date: Wed, 10 Jan 2024 08:43:28 +0100

* gnu/packages/ocaml.scm (dune-ordering): New variable.

Change-Id: I78d81dfc2523b47bdca6430e2f9961cf39c7335a
---
 gnu/packages/ocaml.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 070fb4d433..39724a5f1f 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2027,6 +2027,25 @@ (define-public ocaml-pp
 about.")
     (license license:expat)))
 
+(define-public dune-ordering
+  (package
+    (inherit dune)
+    (name "dune-ordering")
+    (source (origin
+              (inherit (package-source dune))
+              (modules '((guix build utils)))
+              (snippet
+                `(begin
+                   (delete-file-recursively "vendor/pp")
+                   (delete-file-recursively "vendor/csexp")))))
+    (build-system dune-build-system)
+    (arguments
+     `(#:package "ordering"
+       ;; Tests have a cyclic dependency on stdune
+       #:tests? #f))
+    (synopsis "Dune element ordering")
+    (description "This library represents element ordering in OCaml.")))
+
 (define-public ocaml-csexp
   (package
     (name "ocaml-csexp")
-- 
2.41.0