about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/react
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-10-05 05:57:03 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-10-05 08:39:50 +0000
commitc06e5a8d64c978e7adf66f6a00e573635b6930e2 (patch)
treefa185873d74f9e43c06e03ca5e2d2e03c3fcc9fa /pkgs/development/ocaml-modules/react
parent184f80aeb8c70f21f82b89eafc789e8a91504a8d (diff)
downloadnixlib-c06e5a8d64c978e7adf66f6a00e573635b6930e2.tar
nixlib-c06e5a8d64c978e7adf66f6a00e573635b6930e2.tar.gz
nixlib-c06e5a8d64c978e7adf66f6a00e573635b6930e2.tar.bz2
nixlib-c06e5a8d64c978e7adf66f6a00e573635b6930e2.tar.lz
nixlib-c06e5a8d64c978e7adf66f6a00e573635b6930e2.tar.xz
nixlib-c06e5a8d64c978e7adf66f6a00e573635b6930e2.tar.zst
nixlib-c06e5a8d64c978e7adf66f6a00e573635b6930e2.zip
ocamlPackages.react: 1.2.0 -> 1.2.1
Diffstat (limited to 'pkgs/development/ocaml-modules/react')
-rw-r--r--pkgs/development/ocaml-modules/react/default.nix22
1 files changed, 6 insertions, 16 deletions
diff --git a/pkgs/development/ocaml-modules/react/default.nix b/pkgs/development/ocaml-modules/react/default.nix
index 2dffbcf440f9..5a720aead806 100644
--- a/pkgs/development/ocaml-modules/react/default.nix
+++ b/pkgs/development/ocaml-modules/react/default.nix
@@ -1,29 +1,19 @@
-{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
+{ stdenv, fetchurl, ocaml, findlib, topkg, ocamlbuild, opam }:
 
 stdenv.mkDerivation {
-  name = "ocaml-react-1.2.0";
+  name = "ocaml-react-1.2.1";
 
   src = fetchurl {
-    url = http://erratique.ch/software/react/releases/react-1.2.0.tbz;
-    sha256 = "0knhgbngphv5sp1yskfd97crf169qhpc0igr6w7vqw0q36lswyl8";
+    url = http://erratique.ch/software/react/releases/react-1.2.1.tbz;
+    sha256 = "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v";
   };
 
   unpackCmd = "tar xjf $src";
-  buildInputs = [ ocaml findlib ocamlbuild opam ];
+  buildInputs = [ ocaml findlib topkg ocamlbuild opam ];
 
   createFindlibDestdir = true;
 
-  configurePhase = "ocaml pkg/git.ml";
-  buildPhase     = "ocaml pkg/build.ml native=true native-dynlink=true";
-
-  installPhase   =
-  let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
-  in
-   ''
-    opam-installer --script --prefix=$out react.install > install.sh
-    sed -i s!lib/react!lib/ocaml/${ocamlVersion}/site-lib/react! install.sh
-    sh install.sh
-  '';
+  inherit (topkg) buildPhase installPhase;
 
   meta = with stdenv.lib; {
     homepage = http://erratique.ch/software/react;