summary refs log tree commit diff
path: root/pkgs/development/compilers/reason/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/reason/default.nix')
-rw-r--r--pkgs/development/compilers/reason/default.nix18
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/development/compilers/reason/default.nix b/pkgs/development/compilers/reason/default.nix
index 649f4bc4582..763b4ab0dbe 100644
--- a/pkgs/development/compilers/reason/default.nix
+++ b/pkgs/development/compilers/reason/default.nix
@@ -3,13 +3,13 @@
 
 buildOcaml rec {
   name = "reason";
-  version = "3.0.4";
+  version = "3.3.2";
 
   src = fetchFromGitHub {
     owner = "facebook";
     repo = "reason";
-    rev = version;
-    sha256 = "15qhx85him5rr4j0ygj3jh3qv9ijrn82ibr9scbn0qrnn43kj047";
+    rev = "68a4124c772ee25c4729b005c8643851b1e17b92";
+    sha256 = "01v17m94ds98qk727mwpyx0a362zdf9s8x1fh8gp9jd9v3n6bc2d";
   };
 
   propagatedBuildInputs = [ menhir merlin_extend ppx_tools_versioned ];
@@ -20,13 +20,11 @@ buildOcaml rec {
 
   createFindlibDestdir = true;
 
-  postPatch = ''
-    substituteInPlace src/reasonbuild/myocamlbuild.ml \
-      --replace "refmt --print binary" "$out/bin/refmt --print binary"
-  '';
-
   installPhase = ''
-    ${jbuilder.installPhase}
+    for p in reason rtop
+    do
+      ${jbuilder.installPhase} $p.install
+    done
 
     wrapProgram $out/bin/rtop \
       --prefix PATH : "${utop}/bin" \
@@ -36,7 +34,7 @@ buildOcaml rec {
   meta = with stdenv.lib; {
     homepage = https://reasonml.github.io/;
     description = "Facebook's friendly syntax to OCaml";
-    license = licenses.bsd3;
+    license = licenses.mit;
     maintainers = [ maintainers.volth ];
   };
 }