nixpkgs/pkgs/development/ocaml-modules/toml/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
858 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, fetchpatch, buildDunePackage
2019-07-23 19:26:54 +00:00
, iso8601, menhir
}:
buildDunePackage rec {
pname = "toml";
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;
sha256 = "sha256-VEZQTFPwAGShCBGbKUiNOIY1zA/JdTpXU0ZIGNWopnQ=";
2019-07-23 19:26:54 +00:00
};
# Ensure compatibility with menhir ≥ 20211215
patches = fetchpatch {
url = "https://github.com/ocaml-toml/To.ml/commit/41172b739dff43424a12f7c1f0f64939e3660648.patch";
sha256 = "sha256:1333xkmm9qp5m3pp4y5w17k6rvmb30v62qyra6rfk1km2v28hqqq";
};
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 ];
};
}