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