1{
2 lib,
3 ocaml,
4 buildDunePackage,
5 fetchFromGitHub,
6 cppo,
7}:
8
9lib.throwIf (lib.versionAtLeast ocaml.version "5.3")
10 "reanalyze is not available for OCaml ${ocaml.version}"
11
12 buildDunePackage
13 rec {
14 pname = "reanalyze";
15 version = "2.25.1";
16
17 minimalOCamlVersion = "4.08";
18
19 src = fetchFromGitHub {
20 owner = "rescript-lang";
21 repo = "reanalyze";
22 tag = "v${version}";
23 hash = "sha256-cM39Gk4Ko7o/DyhrzgEHilobaB3h91Knltkcv2sglFw=";
24 };
25
26 nativeBuildInputs = [ cppo ];
27
28 meta = {
29 description = "Program analysis for ReScript and OCaml projects";
30 homepage = "https://github.com/rescript-lang/reanalyze/";
31 changelog = "https://github.com/rescript-lang/reanalyze/blob/v${version}/Changes.md";
32 license = lib.licenses.mit;
33 maintainers = [ lib.maintainers.vbgl ];
34 };
35 }