8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
25 lines
705 B
Nix
25 lines
705 B
Nix
{ stdenv, fetchzip, libiconv, ocaml, findlib, ocamlbuild, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml-text";
|
|
version = "0.8";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/vbmithr/ocaml-text/archive/${version}.tar.gz";
|
|
sha256 = "11jamdfn5s19a0yvl012q1xvdk1grkp4rkrn819imqrvdplqkn1y";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild 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 [];
|
|
};
|
|
}
|