2016-12-04 11:33:02 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, uchar, uutf, cmdliner }:
|
2014-07-09 09:42:26 +02:00
|
|
|
let
|
|
|
|
pname = "uunf";
|
|
|
|
webpage = "http://erratique.ch/software/${pname}";
|
|
|
|
in
|
2014-09-21 12:02:55 +02:00
|
|
|
|
2016-12-04 11:33:02 +01:00
|
|
|
assert stdenv.lib.versionAtLeast ocaml.version "4.01";
|
2014-09-21 12:02:55 +02:00
|
|
|
|
2014-07-09 09:42:26 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml-${pname}-${version}";
|
2017-06-29 18:31:35 +02:00
|
|
|
version = "10.0.0";
|
2014-07-09 09:42:26 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
2017-06-29 18:31:35 +02:00
|
|
|
sha256 = "0c5lwica5668ybsffllk6x4p921nw4pljimgqikhf17k5hvyjsbr";
|
2014-07-09 09:42:26 +02:00
|
|
|
};
|
|
|
|
|
2016-12-04 11:33:02 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild opam topkg uutf cmdliner ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ uchar ];
|
2014-07-09 09:42:26 +02:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
unpackCmd = "tar xjf $src";
|
|
|
|
|
2016-12-04 11:33:02 +01:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2014-07-09 09:42:26 +02:00
|
|
|
|
2014-09-21 12:02:55 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-09 09:42:26 +02:00
|
|
|
description = "An OCaml module for normalizing Unicode text";
|
|
|
|
homepage = "${webpage}";
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-09-21 12:02:55 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-07-09 09:42:26 +02:00
|
|
|
};
|
|
|
|
}
|