nixpkgs/pkgs/development/compilers/reason/default.nix
Vincent Laporte a42c917e0a reason: refactor
Move rtop to a separate package.
2024-11-15 06:26:22 +01:00

46 lines
953 B
Nix

{ lib, callPackage, buildDunePackage, fetchurl
, fix, menhir, menhirLib, menhirSdk, merlin-extend, ppxlib, cppo, ppx_derivers
, dune-build-info
}:
buildDunePackage rec {
pname = "reason";
version = "3.13.0";
minimalOCamlVersion = "4.11";
src = fetchurl {
url = "https://github.com/reasonml/reason/releases/download/${version}/reason-${version}.tbz";
hash = "sha256-3yVEYGvIJKZwguIBGCbnoc3nrwzLW6RX6Tf+AYw85+Q=";
};
nativeBuildInputs = [
menhir
cppo
];
buildInputs = [
dune-build-info
fix
menhirSdk
merlin-extend
];
propagatedBuildInputs = [
ppxlib
menhirLib
];
passthru.tests = {
hello = callPackage ./tests/hello { };
};
meta = with lib; {
homepage = "https://reasonml.github.io/";
downloadPage = "https://github.com/reasonml/reason";
description = "User-friendly programming language built on OCaml";
license = licenses.mit;
maintainers = [ ];
};
}