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

Message ID 361a0df311e0eb3807373fff68a1e0cde5c98142.1727335349.git.herman@rimm.ee
State New
Headers
Series [bug#73466,v2,01/15] gnu: Add ocaml-ppx-yojson-conv-lib. |

Commit Message

Herman Rimm Sept. 26, 2024, 7:23 a.m. UTC
  * gnu/packages/ocaml.scm (ocaml-directories): Add variable.

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

Patch

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")