···1+{ lib, fetchFromGitHub, buildDunePackage }:
2+3+buildDunePackage rec {
4+ pname = "directories";
5+ version = "0.2";
6+ useDune2 = true;
7+8+ minimumOCamlVersion = "4.07";
9+10+ src = fetchFromGitHub {
11+ owner = "ocamlpro";
12+ repo = pname;
13+ rev = version;
14+ sha256 = "0s7ginh0g0fhw8xf9v58cx99a8q9jqsf4i0p134m5qzf84qpjwff";
15+ };
16+17+ meta = {
18+ homepage = "https://github.com/ocamlpro/directories";
19+ description = "An OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows";
20+ longDescription = ''
21+ directories is an OCaml library that provides configuration, cache and
22+ data paths (and more!) following the suitable conventions on Linux, macOS
23+ and Windows. It is inspired by similar libraries for other languages such
24+ as directories-jvm.
25+26+ The following conventions are used: XDG Base Directory Specification and
27+ xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on
28+ macOS.
29+ '';
30+ license = lib.licenses.isc;
31+ maintainers = with lib.maintainers; [ bcc32 ];
32+ };
33+}