ocamlPackages.uunf: 0.9.3 -> 2.0.0

This commit is contained in:
Vincent Laporte 2016-12-04 10:33:02 +00:00
parent 7ebe29a56c
commit 8990a6c116

View file

@ -1,33 +1,29 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }: { stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, uchar, uutf, cmdliner }:
let let
pname = "uunf"; pname = "uunf";
webpage = "http://erratique.ch/software/${pname}"; webpage = "http://erratique.ch/software/${pname}";
in in
assert stdenv.lib.versionAtLeast ocaml.version "3.12"; assert stdenv.lib.versionAtLeast ocaml.version "4.01";
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ocaml-${pname}-${version}"; name = "ocaml-${pname}-${version}";
version = "0.9.3"; version = "2.0.0";
src = fetchurl { src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz"; 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; createFindlibDestdir = true;
unpackCmd = "tar xjf $src"; unpackCmd = "tar xjf $src";
buildPhase = "./pkg/build true false"; inherit (topkg) buildPhase installPhase;
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/
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An OCaml module for normalizing Unicode text"; description = "An OCaml module for normalizing Unicode text";