summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-12-04 10:33:02 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-01-13 06:38:07 +0000
commit8990a6c1162742245d9ec46c6bf5a95343e3fda3 (patch)
tree81109e1af297b75f6dbe0b5028a94045e23154dc /pkgs/development/ocaml-modules
parent7ebe29a56c4b5260eabbfd659e57fb04bf6e6cea (diff)
downloadnixlib-8990a6c1162742245d9ec46c6bf5a95343e3fda3.tar
nixlib-8990a6c1162742245d9ec46c6bf5a95343e3fda3.tar.gz
nixlib-8990a6c1162742245d9ec46c6bf5a95343e3fda3.tar.bz2
nixlib-8990a6c1162742245d9ec46c6bf5a95343e3fda3.tar.lz
nixlib-8990a6c1162742245d9ec46c6bf5a95343e3fda3.tar.xz
nixlib-8990a6c1162742245d9ec46c6bf5a95343e3fda3.tar.zst
nixlib-8990a6c1162742245d9ec46c6bf5a95343e3fda3.zip
ocamlPackages.uunf: 0.9.3 -> 2.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/uunf/default.nix20
1 files changed, 8 insertions, 12 deletions
diff --git a/pkgs/development/ocaml-modules/uunf/default.nix b/pkgs/development/ocaml-modules/uunf/default.nix
index 11ff9a36a41c..a9c7add6129b 100644
--- a/pkgs/development/ocaml-modules/uunf/default.nix
+++ b/pkgs/development/ocaml-modules/uunf/default.nix
@@ -1,33 +1,29 @@
-{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, uchar, uutf, cmdliner }:
 let
   pname = "uunf";
   webpage = "http://erratique.ch/software/${pname}";
 in
 
-assert stdenv.lib.versionAtLeast ocaml.version "3.12";
+assert stdenv.lib.versionAtLeast ocaml.version "4.01";
 
 stdenv.mkDerivation rec {
   name = "ocaml-${pname}-${version}";
-  version = "0.9.3";
+  version = "2.0.0";
 
   src = fetchurl {
     url = "${webpage}/releases/${pname}-${version}.tbz";
-    sha256 = "16cgjy1m0m61srv1pmlc3gr0y40kd4724clvpagdnz68raz4zmn0";
+    sha256 = "1i132168949vdc8magycgf9mdysf50vvr7zngnjl4vi3zdayq20c";
   };
 
-  buildInputs = [ ocaml findlib ocamlbuild opam ];
+  buildInputs = [ ocaml findlib ocamlbuild opam topkg uutf cmdliner ];
+
+  propagatedBuildInputs = [ uchar ];
 
   createFindlibDestdir = true;
 
   unpackCmd = "tar xjf $src";
 
-  buildPhase = "./pkg/build true false";
-
-  installPhase = ''
-    opam-installer --script --prefix=$out ${pname}.install > install.sh
-    sh install.sh
-    ln -s $out/lib/${pname} $out/lib/ocaml/${ocaml.version}/site-lib/
-  '';
+  inherit (topkg) buildPhase installPhase;
 
   meta = with stdenv.lib; {
     description = "An OCaml module for normalizing Unicode text";