summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/morbig/default.nix
blob: f1d6870a6a0d850010a46537f896a0d242e9ae7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  ocaml,
  buildDunePackage,
  fetchFromGitHub,
  menhir,
  menhirLib,
  ppx_deriving_yojson,
  visitors,
}:

buildDunePackage (finalAttrs: {
  pname = "morbig";
  version = "0.11.0";

  src = fetchFromGitHub {
    owner = "colis-anr";
    repo = "morbig";
    tag = "v${finalAttrs.version}";
    hash = "sha256-fOBaJHHP/Imi9UDLflI52OdKDcmMxpl+NH3pfofmv/o=";
  };

  # Compatibility with menhir ≥ 20260122
  patches = [ ./menhir.patch ];

  nativeBuildInputs = [
    menhir
  ];

  propagatedBuildInputs = [
    menhirLib
    ppx_deriving_yojson
    visitors
  ];

  meta = {
    homepage = "https://github.com/colis-anr/morbig";
    description = "Static parser for POSIX Shell";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ niols ];
    broken = lib.versionAtLeast ocaml.version "5.4";
  };
})