nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uucp, uutf, cmdliner }:
2
3let
4 pname = "uuseg";
5 webpage = "https://erratique.ch/software/${pname}";
6in
7
8stdenv.mkDerivation rec {
9
10 name = "ocaml${ocaml.version}-${pname}-${version}";
11 version = "14.0.0";
12
13 src = fetchurl {
14 url = "${webpage}/releases/${pname}-${version}.tbz";
15 sha256 = "sha256:1g9zyzjkhqxgbb9mh3cgaawscwdazv6y8kdqvmy6yhnimmfqv25p";
16 };
17
18 buildInputs = [ ocaml findlib ocamlbuild cmdliner topkg uutf ];
19 propagatedBuildInputs = [ uucp ];
20
21 inherit (topkg) buildPhase installPhase;
22
23 meta = with lib; {
24 description = "An OCaml library for segmenting Unicode text";
25 homepage = webpage;
26 inherit (ocaml.meta) platforms;
27 license = licenses.bsd3;
28 maintainers = [ maintainers.vbgl ];
29 };
30}