1{ lib, fetchFromGitHub, fetchpatch, buildDunePackage
2, iso8601, menhir
3}:
4
5buildDunePackage rec {
6 pname = "toml";
7 version = "7.0.0";
8
9 src = fetchFromGitHub {
10 owner = "ocaml-toml";
11 repo = "to.ml";
12 rev = version;
13 sha256 = "sha256-VEZQTFPwAGShCBGbKUiNOIY1zA/JdTpXU0ZIGNWopnQ=";
14 };
15
16 # Ensure compatibility with menhir ≥ 20211215
17 patches = fetchpatch {
18 url = "https://github.com/ocaml-toml/To.ml/commit/41172b739dff43424a12f7c1f0f64939e3660648.patch";
19 sha256 = "sha256:1333xkmm9qp5m3pp4y5w17k6rvmb30v62qyra6rfk1km2v28hqqq";
20 };
21
22 nativeBuildInputs = [ menhir ];
23 propagatedBuildInputs = [ iso8601 ];
24
25 meta = {
26 description = "Implementation in OCaml of the Toml minimal langage";
27 homepage = "http://ocaml-toml.github.io/To.ml";
28 license = lib.licenses.lgpl3;
29 maintainers = [ lib.maintainers.vbgl ];
30 };
31}