1{
2 lib,
3 fetchFromGitHub,
4 buildDunePackage,
5 fpath,
6}:
7
8buildDunePackage rec {
9 pname = "directories";
10 version = "0.6";
11
12 minimalOCamlVersion = "4.14";
13
14 src = fetchFromGitHub {
15 owner = "OCamlPro";
16 repo = pname;
17 tag = version;
18 hash = "sha256-c/9ChiSODD1K7YsMj65tjErAwXeWvEQ8BkAcUvsr19c=";
19 };
20
21 propagatedBuildInputs = [
22 fpath
23 ];
24
25 meta = {
26 homepage = "https://github.com/OCamlPro/directories";
27 description = "OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows";
28 longDescription = ''
29 directories is an OCaml library that provides configuration, cache and
30 data paths (and more!) following the suitable conventions on Linux, macOS
31 and Windows. It is inspired by similar libraries for other languages such
32 as directories-jvm.
33
34 The following conventions are used: XDG Base Directory Specification and
35 xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on
36 macOS.
37 '';
38 changelog = "https://raw.githubusercontent.com/OCamlPro/directories/refs/tags/${src.tag}/CHANGES.md";
39 license = lib.licenses.isc;
40 maintainers = with lib.maintainers; [ bcc32 ];
41 };
42}