Subject: [bug#73466] [PATCH v2 05/15] gnu: Add ocaml-directories.

From: Herman Rimm <[email-masked]>
Date: Thu, 26 Sep 2024 09:23:35 +0200

* gnu/packages/ocaml.scm (ocaml-directories): Add variable.

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

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index b7160cab36..f0886ac762 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -726,6 +726,36 @@ (define-public ocaml-cudf
     ;; With static-linking exception
     (license license:lgpl2.1+)))
 
+(define-public ocaml-directories
+  (package
+    (name "ocaml-directories")
+    (version "0.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/OCamlPro/directories")
+              (commit version)))
+       (sha256
+        (base32
+          "1xys79ji1fqjjyzgapqzd5zpx7gs2kiaf87csm4y8f4zd638cl6z"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-ctypes))
+    (home-page "https://github.com/ocamlpro/directories")
+    (synopsis "Provides configuration, cache and data paths")
+    (description
+     "directories is an OCaml library that provides configuration, cache
+and data paths (and more!) following the suitable conventions on Linux,
+@code{macOS} and Windows.  It is inspired by similar libraries for other
+languages such as directories-jvm.  The following conventions are used:
+
+@itemize
+@item XDG Base Directory Specification and xdg-user-dirs on Linux;
+@item Known Folders on Windows;
+@item Standard Directories on @code{macOS}.
+@end itemize")
+    (license license:isc)))
+
 (define-public ocaml-mccs
   (package
     (name "ocaml-mccs")
-- 
2.45.2