1{ lib, fetchFromGitHub, ocamlPackages, menhir }:
2
3ocamlPackages.buildDunePackage rec {
4 pname = "obelisk";
5 version = "0.6.0";
6 duneVersion = "3";
7 src = fetchFromGitHub {
8 owner = "Lelio-Brun";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1jjaqa2b7msl9qd3x7j34vdh1s9alq8hbvzk8a5srb4yyfyim15b";
12 };
13
14 strictDeps = true;
15
16 nativeBuildInputs = [ menhir ];
17 buildInputs = with ocamlPackages; [ re ];
18
19 meta = {
20 description = "A simple tool which produces pretty-printed output from a Menhir parser file (.mly)";
21 license = lib.licenses.mit;
22 maintainers = [ lib.maintainers.vbgl ];
23 homepage = "https://github.com/Lelio-Brun/Obelisk";
24 };
25}