2022-05-29 13:05:22 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage
|
2019-07-23 19:26:54 +00:00
|
|
|
, iso8601, menhir
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "toml";
|
2022-04-20 19:50:03 +00:00
|
|
|
version = "7.0.0";
|
2021-01-18 07:21:48 +00:00
|
|
|
|
2019-07-23 19:26:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml-toml";
|
|
|
|
repo = "to.ml";
|
2021-01-18 07:21:48 +00:00
|
|
|
rev = version;
|
2022-04-20 19:50:03 +00:00
|
|
|
sha256 = "sha256-VEZQTFPwAGShCBGbKUiNOIY1zA/JdTpXU0ZIGNWopnQ=";
|
2019-07-23 19:26:54 +00:00
|
|
|
};
|
|
|
|
|
2022-05-29 13:05:22 +00:00
|
|
|
# Ensure compatibility with menhir ≥ 20211215
|
|
|
|
patches = fetchpatch {
|
|
|
|
url = "https://github.com/ocaml-toml/To.ml/commit/41172b739dff43424a12f7c1f0f64939e3660648.patch";
|
|
|
|
sha256 = "sha256:1333xkmm9qp5m3pp4y5w17k6rvmb30v62qyra6rfk1km2v28hqqq";
|
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ menhir ];
|
2019-07-23 19:26:54 +00:00
|
|
|
propagatedBuildInputs = [ iso8601 ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Implementation in OCaml of the Toml minimal langage";
|
|
|
|
homepage = "http://ocaml-toml.github.io/To.ml";
|
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|