ocamlPackages.uuseg: 0.9.0 -> 1.0.0
This commit is contained in:
@@ -1,39 +1,28 @@
|
|||||||
{ stdenv, buildOcaml, fetchurl, ocaml, findlib, ocamlbuild, opam, uucp, uutf, cmdliner }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, uchar, uucp, uutf, cmdliner }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "uuseg";
|
pname = "uuseg";
|
||||||
webpage = "http://erratique.ch/software/${pname}";
|
webpage = "http://erratique.ch/software/${pname}";
|
||||||
in
|
in
|
||||||
|
|
||||||
buildOcaml rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
minimumSupportedOcamlVersion = "4.01";
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||||
|
version = "1.0.0";
|
||||||
name = pname;
|
|
||||||
version = "0.9.0";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
sha256 = "00n4zi8dyw2yzi4nr2agcrr33b0q4dr9mgnkczipf4c0gm5cm50h";
|
sha256 = "0m5n0kn70w862g5dhfkfvrnmb98z1r02g21ap7l81hy8sn08cbsz";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild opam cmdliner ];
|
buildInputs = [ ocaml findlib ocamlbuild opam cmdliner topkg uutf ];
|
||||||
propagatedBuildInputs = [ uucp uutf ];
|
propagatedBuildInputs = [ uucp uchar ];
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
unpackCmd = "tar xjf $src";
|
unpackCmd = "tar xjf $src";
|
||||||
|
|
||||||
buildPhase = ''
|
inherit (topkg) buildPhase installPhase;
|
||||||
ocaml pkg/build.ml \
|
|
||||||
native=true native-dynlink=true \
|
|
||||||
uutf=true cmdliner=true
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
opam-installer --script --prefix=$out ${pname}.install | sh
|
|
||||||
ln -s $out/lib/${pname} $out/lib/ocaml/${ocaml.version}/site-lib/${pname}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An OCaml library for segmenting Unicode text";
|
description = "An OCaml library for segmenting Unicode text";
|
||||||
|
|||||||
Reference in New Issue
Block a user