1{
2 lib,
3 callPackage,
4 buildDunePackage,
5 fetchurl,
6 fix,
7 menhir,
8 menhirLib,
9 menhirSdk,
10 merlin-extend,
11 ppxlib,
12 cppo,
13 ppx_derivers,
14 dune-build-info,
15}:
16
17buildDunePackage rec {
18 pname = "reason";
19 version = "3.15.0";
20
21 minimalOCamlVersion = "4.11";
22
23 src = fetchurl {
24 url = "https://github.com/reasonml/reason/releases/download/${version}/reason-${version}.tbz";
25 hash = "sha256-7D0gJfQ5Hw0riNIFPmJ6haoa3dnFEyDp5yxpDgX7ZqY=";
26 };
27
28 nativeBuildInputs = [
29 menhir
30 cppo
31 ];
32
33 buildInputs = [
34 dune-build-info
35 fix
36 menhirSdk
37 merlin-extend
38 ];
39
40 propagatedBuildInputs = [
41 ppxlib
42 menhirLib
43 ];
44
45 passthru.tests = {
46 hello = callPackage ./tests/hello { };
47 };
48
49 meta = with lib; {
50 homepage = "https://reasonml.github.io/";
51 downloadPage = "https://github.com/reasonml/reason";
52 description = "User-friendly programming language built on OCaml";
53 license = licenses.mit;
54 maintainers = [ ];
55 };
56}