2021-10-03 21:03:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uucp, uutf, cmdliner }:
|
2014-12-28 13:27:27 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "uuseg";
|
2019-04-22 09:14:28 +01:00
|
|
|
webpage = "https://erratique.ch/software/${pname}";
|
2014-12-28 13:27:27 +00:00
|
|
|
in
|
|
|
|
|
2016-12-04 10:55:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-12-28 13:27:27 +00:00
|
|
|
|
2016-12-04 10:55:37 +00:00
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2021-10-03 21:03:56 +01:00
|
|
|
version = "14.0.0";
|
2014-12-28 13:27:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
2021-10-03 21:03:56 +01:00
|
|
|
sha256 = "sha256:1g9zyzjkhqxgbb9mh3cgaawscwdazv6y8kdqvmy6yhnimmfqv25p";
|
2014-12-28 13:27:27 +00:00
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
|
|
|
buildInputs = [ topkg cmdliner uutf ];
|
2021-10-03 21:03:56 +01:00
|
|
|
propagatedBuildInputs = [ uucp ];
|
2014-12-28 13:27:27 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2016-12-04 10:55:37 +00:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2014-12-28 13:27:27 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-12-28 13:27:27 +00:00
|
|
|
description = "An OCaml library for segmenting Unicode text";
|
2019-09-09 00:38:31 +01:00
|
|
|
homepage = webpage;
|
2021-10-03 21:03:56 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
2014-12-28 13:27:27 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|