summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocaml-text/default.nix
blob: 64e0bb5ba010e70d2adf901feea111cdc63d1cf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchzip, libiconv, ocaml, findlib, ncurses }:

stdenv.mkDerivation rec {
  name = "ocaml-text-${version}";
  version = "0.8";

  src = fetchzip {
    url = "https://github.com/vbmithr/ocaml-text/archive/${version}.tar.gz";
    sha256 = "11jamdfn5s19a0yvl012q1xvdk1grkp4rkrn819imqrvdplqkn1y";
  };

  buildInputs = [ocaml findlib ncurses libiconv];

  configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure";

  createFindlibDestdir = true;


  meta = {
    homepage = "http://ocaml-text.forge.ocamlcore.org/";
    description = "A library for convenient text manipulation";
    license = stdenv.lib.licenses.bsd3;
    platforms = ocaml.meta.platforms or [];
  };
}