2022-05-14 21:14:53 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildDunePackage
|
2021-07-19 09:31:51 +02:00
|
|
|
, menhir
|
|
|
|
, menhirLib
|
|
|
|
, uutf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "otoml";
|
2022-10-01 06:20:00 +02:00
|
|
|
version = "1.0.2";
|
2021-07-19 09:31:51 +02:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dmbaturin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-01 06:20:00 +02:00
|
|
|
sha256 = "sha256-Xd3fHBN1f+tvgRFCxD/Gz8/lIvezknz7Zy3EtdqoTEM=";
|
2021-07-19 09:31:51 +02:00
|
|
|
};
|
|
|
|
|
2022-02-22 10:59:04 +01:00
|
|
|
nativeBuildInputs = [ menhir ];
|
2021-07-19 09:31:51 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ menhirLib uutf ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A TOML parsing and manipulation library for OCaml";
|
2022-10-01 06:20:00 +02:00
|
|
|
changelog = "https://github.com/dmbaturin/otoml/raw/${version}/CHANGELOG.md";
|
2021-07-19 09:31:51 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|