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:39:58 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-01-13 06:38:07 +0000
commit7565673f718eb2598612bfb9d613f3cdea49b580 (patch)
treef7533d66a21b9c3b401a6077a8b43ee7393d3917 /pkgs/development/ocaml-modules
parent8990a6c1162742245d9ec46c6bf5a95343e3fda3 (diff)
downloadnixlib-7565673f718eb2598612bfb9d613f3cdea49b580.tar
nixlib-7565673f718eb2598612bfb9d613f3cdea49b580.tar.gz
nixlib-7565673f718eb2598612bfb9d613f3cdea49b580.tar.bz2
nixlib-7565673f718eb2598612bfb9d613f3cdea49b580.tar.lz
nixlib-7565673f718eb2598612bfb9d613f3cdea49b580.tar.xz
nixlib-7565673f718eb2598612bfb9d613f3cdea49b580.tar.zst
nixlib-7565673f718eb2598612bfb9d613f3cdea49b580.zip
ocamlPackages.uucp: 1.1.0 -> 2.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/uucp/default.nix23
1 files changed, 9 insertions, 14 deletions
diff --git a/pkgs/development/ocaml-modules/uucp/default.nix b/pkgs/development/ocaml-modules/uucp/default.nix
index 456fc8a19761..db0b29d94c50 100644
--- a/pkgs/development/ocaml-modules/uucp/default.nix
+++ b/pkgs/development/ocaml-modules/uucp/default.nix
@@ -1,36 +1,31 @@
-{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, uchar }:
 
 let
-  inherit (stdenv.lib) getVersion versionAtLeast;
-
   pname = "uucp";
-  version = "1.1.0";
+  version = "2.0.0";
   webpage = "http://erratique.ch/software/${pname}";
 in
 
-assert versionAtLeast (getVersion ocaml) "4.00";
+assert stdenv.lib.versionAtLeast ocaml.version "4.01";
 
 stdenv.mkDerivation {
 
-  name = "ocaml-${pname}-${version}";
+  name = "ocaml${ocaml.version}-${pname}-${version}";
 
   src = fetchurl {
     url = "${webpage}/releases/${pname}-${version}.tbz";
-    sha256 = "1vm5f2ppdrnk19j0ppjiqz56qf5bzyk26gs0lz071s7iblk459jz";
+    sha256 = "07m7pfpcf03dqsbvqpq88y9hzic8fighlp4fgbav6n6xla35mk5k";
   };
 
-  buildInputs = [ ocaml findlib ocamlbuild opam ];
+  buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
+
+  propagatedBuildInputs = [ uchar ];
 
   createFindlibDestdir = true;
 
   unpackCmd = "tar xjf $src";
 
-  buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
-
-  installPhase = ''
-    opam-installer --script --prefix=$out ${pname}.install | sh
-    ln -s $out/lib/${pname} $out/lib/ocaml/${getVersion ocaml}/site-lib/${pname}
-  '';
+  inherit (topkg) buildPhase installPhase;
 
   meta = with stdenv.lib; {
     description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";