btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / compilers / reason / default.nix
blob89487bdaa362185ca07af3205d118db3cfd9f057
1 { lib, callPackage, buildDunePackage, fetchurl
2 , fix, menhir, menhirLib, menhirSdk, merlin-extend, ppxlib, cppo, ppx_derivers
3 , dune-build-info
4 }:
6 buildDunePackage rec {
7   pname = "reason";
8   version = "3.13.0";
10   minimalOCamlVersion = "4.11";
12   src = fetchurl {
13     url = "https://github.com/reasonml/reason/releases/download/${version}/reason-${version}.tbz";
14     hash = "sha256-3yVEYGvIJKZwguIBGCbnoc3nrwzLW6RX6Tf+AYw85+Q=";
15   };
17   nativeBuildInputs = [
18     menhir
19     cppo
20   ];
22   buildInputs = [
23     dune-build-info
24     fix
25     menhirSdk
26     merlin-extend
27   ];
29   propagatedBuildInputs = [
30     ppxlib
31     menhirLib
32   ];
34   passthru.tests = {
35     hello = callPackage ./tests/hello { };
36   };
38   meta = with lib; {
39     homepage = "https://reasonml.github.io/";
40     downloadPage = "https://github.com/reasonml/reason";
41     description = "User-friendly programming language built on OCaml";
42     license = licenses.mit;
43     maintainers = [ ];
44   };