summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-05-28 06:08:03 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2018-06-06 07:14:20 +0000
commit853fb4598fcc96c7f27c795332d49292f871edcd (patch)
tree3c73b34587fa1ea05268d3c7f12a73335138acbc /pkgs/development/ocaml-modules
parent9114b4731454cbbe547b8a0279b5084a672e6064 (diff)
downloadnixlib-853fb4598fcc96c7f27c795332d49292f871edcd.tar
nixlib-853fb4598fcc96c7f27c795332d49292f871edcd.tar.gz
nixlib-853fb4598fcc96c7f27c795332d49292f871edcd.tar.bz2
nixlib-853fb4598fcc96c7f27c795332d49292f871edcd.tar.lz
nixlib-853fb4598fcc96c7f27c795332d49292f871edcd.tar.xz
nixlib-853fb4598fcc96c7f27c795332d49292f871edcd.tar.zst
nixlib-853fb4598fcc96c7f27c795332d49292f871edcd.zip
ocamlPackages.uchar: use opaline
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/uchar/default.nix12
1 files changed, 3 insertions, 9 deletions
diff --git a/pkgs/development/ocaml-modules/uchar/default.nix b/pkgs/development/ocaml-modules/uchar/default.nix
index 6b27f00fb150..8fddf883da5d 100644
--- a/pkgs/development/ocaml-modules/uchar/default.nix
+++ b/pkgs/development/ocaml-modules/uchar/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ocaml, ocamlbuild, opam }:
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline }:
 
 stdenv.mkDerivation {
   name = "ocaml${ocaml.version}-uchar-0.0.2";
@@ -9,15 +9,9 @@ stdenv.mkDerivation {
   };
 
   unpackCmd = "tar xjf $src";
-  buildInputs = [ ocaml ocamlbuild opam ];
+  buildInputs = [ ocaml ocamlbuild findlib opaline ];
   buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
-  installPhase = ''
-    opam-installer --script --prefix=$out uchar.install > install.sh
-    sh install.sh
-    mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/
-    ln -s $out/lib/uchar $out/lib/ocaml/${ocaml.version}/site-lib/
-  '';
-
+  installPhase = "opaline -libdir $OCAMLFIND_DESTDIR";
 
   meta = {
     description = "Compatibility library for OCaml’s Uchar module";