···11+{ lib, fetchFromGitHub, buildDunePackage }:
22+33+buildDunePackage rec {
44+ pname = "directories";
55+ version = "0.2";
66+ useDune2 = true;
77+88+ minimumOCamlVersion = "4.07";
99+1010+ src = fetchFromGitHub {
1111+ owner = "ocamlpro";
1212+ repo = pname;
1313+ rev = version;
1414+ sha256 = "0s7ginh0g0fhw8xf9v58cx99a8q9jqsf4i0p134m5qzf84qpjwff";
1515+ };
1616+1717+ meta = {
1818+ homepage = "https://github.com/ocamlpro/directories";
1919+ description = "An OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows";
2020+ longDescription = ''
2121+ directories is an OCaml library that provides configuration, cache and
2222+ data paths (and more!) following the suitable conventions on Linux, macOS
2323+ and Windows. It is inspired by similar libraries for other languages such
2424+ as directories-jvm.
2525+2626+ The following conventions are used: XDG Base Directory Specification and
2727+ xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on
2828+ macOS.
2929+ '';
3030+ license = lib.licenses.isc;
3131+ maintainers = with lib.maintainers; [ bcc32 ];
3232+ };
3333+}