2016-10-08 06:44:25 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam }:
|
2014-11-27 06:53:43 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (stdenv.lib) getVersion versionAtLeast;
|
|
|
|
|
|
|
|
pname = "uucp";
|
2015-12-02 13:47:08 +00:00
|
|
|
version = "1.1.0";
|
2014-11-27 06:53:43 +00:00
|
|
|
webpage = "http://erratique.ch/software/${pname}";
|
|
|
|
in
|
|
|
|
|
|
|
|
assert versionAtLeast (getVersion ocaml) "4.00";
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "ocaml-${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
2015-12-02 13:47:08 +00:00
|
|
|
sha256 = "1vm5f2ppdrnk19j0ppjiqz56qf5bzyk26gs0lz071s7iblk459jz";
|
2014-11-27 06:53:43 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 06:44:25 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild opam ];
|
2014-11-27 06:53:43 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
|
|
|
|
homepage = "${webpage}";
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-11-27 06:53:43 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|