guix-patches
[Top][All Lists]
Advanced

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

[bug#64209] [PATCH v3 09/14] gnu: Add ocaml-xdg.


From: Benjamin
Subject: [bug#64209] [PATCH v3 09/14] gnu: Add ocaml-xdg.
Date: Fri, 10 Nov 2023 16:46:21 +0100

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

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

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 76cc995753..a12e7f4264 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -9753,6 +9753,26 @@ (define-public ocaml-stdune
      "This library is dune standard library. It offers no backwards
 compatibility guarantees.")))
 
+(define-public ocaml-xdg
+  (package
+    (inherit dune)
+    (name "ocaml-xdg")
+    (build-system dune-build-system)
+    (arguments
+     '(#:package "xdg"
+       #:tests? #f
+       #:phases (modify-phases %standard-phases
+                  (add-before 'build 'remove-vendor
+                    (lambda _
+                      (delete-file-recursively "vendor/csexp")
+                      (delete-file-recursively "vendor/pp"))))))
+    (propagated-inputs (list ocaml-odoc))
+    (properties '())
+    (synopsis "XDG Base Directory Specification library for ocaml")
+    (description
+     "This ocaml library returns user XDG directories such as XDG_CONFIG_HOME,
+     XDG_STATE_HOME.")))
+
 (define-public ocaml-ordering
   (package
     (inherit dune)
-- 
2.41.0






reply via email to

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