about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-09-01 11:32:38 +0100
committerGitHub <noreply@github.com>2018-09-01 11:32:38 +0100
commitfbad0bc8f9cf6e4d60732798355ef14e0a5259f7 (patch)
tree11b3fa8f34d4331da4f685fcde15729d1f1c0587
parentb0155aa1e7ec88f45751456ec4be0312fcf8d086 (diff)
parent7f606786cec20c371b0504c5d496df454e4ae65b (diff)
downloadnixlib-fbad0bc8f9cf6e4d60732798355ef14e0a5259f7.tar
nixlib-fbad0bc8f9cf6e4d60732798355ef14e0a5259f7.tar.gz
nixlib-fbad0bc8f9cf6e4d60732798355ef14e0a5259f7.tar.bz2
nixlib-fbad0bc8f9cf6e4d60732798355ef14e0a5259f7.tar.lz
nixlib-fbad0bc8f9cf6e4d60732798355ef14e0a5259f7.tar.xz
nixlib-fbad0bc8f9cf6e4d60732798355ef14e0a5259f7.tar.zst
nixlib-fbad0bc8f9cf6e4d60732798355ef14e0a5259f7.zip
Merge pull request #45892 from vbgl/reason
ocamlPackages.reason: remove spurious dependency on opam
-rw-r--r--pkgs/development/compilers/reason/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/development/compilers/reason/default.nix b/pkgs/development/compilers/reason/default.nix
index 42969a5253ed..f4cc1cf2b650 100644
--- a/pkgs/development/compilers/reason/default.nix
+++ b/pkgs/development/compilers/reason/default.nix
@@ -1,8 +1,9 @@
-{ stdenv, makeWrapper, buildOcaml, fetchFromGitHub,
-  ocaml, opam, jbuilder, menhir, merlin_extend, ppx_tools_versioned, utop }:
+{ stdenv, makeWrapper, fetchFromGitHub, ocaml, findlib, jbuilder
+, menhir, merlin_extend, ppx_tools_versioned, utop
+}:
 
-buildOcaml rec {
-  name = "reason";
+stdenv.mkDerivation rec {
+  name = "ocaml${ocaml.version}-reason-${version}";
   version = "3.3.3";
 
   src = fetchFromGitHub {
@@ -14,12 +15,10 @@ buildOcaml rec {
 
   propagatedBuildInputs = [ menhir merlin_extend ppx_tools_versioned ];
 
-  buildInputs = [ makeWrapper opam jbuilder utop menhir ];
+  buildInputs = [ makeWrapper ocaml findlib jbuilder utop menhir ];
 
   buildFlags = [ "build" ]; # do not "make tests" before reason lib is installed
 
-  createFindlibDestdir = true;
-
   installPhase = ''
     for p in reason rtop
     do
@@ -35,6 +34,7 @@ buildOcaml rec {
     homepage = https://reasonml.github.io/;
     description = "Facebook's friendly syntax to OCaml";
     license = licenses.mit;
+    inherit (ocaml.meta) platforms;
     maintainers = [ maintainers.volth ];
   };
 }