nixpkgs/pkgs/development/ocaml-modules/ocaml-text/default.nix

26 lines
705 B
Nix
Raw Normal View History

{ stdenv, fetchzip, libiconv, ocaml, findlib, ocamlbuild, ncurses }:
2014-05-15 09:02:32 +00:00
2016-04-05 16:44:54 +00:00
stdenv.mkDerivation rec {
pname = "ocaml-text";
2016-04-05 16:44:54 +00:00
version = "0.8";
2014-05-15 09:02:32 +00:00
2016-04-05 16:44:54 +00:00
src = fetchzip {
url = "https://github.com/vbmithr/ocaml-text/archive/${version}.tar.gz";
sha256 = "11jamdfn5s19a0yvl012q1xvdk1grkp4rkrn819imqrvdplqkn1y";
2014-05-15 09:02:32 +00:00
};
buildInputs = [ ocaml findlib ocamlbuild ncurses libiconv ];
2014-05-15 09:02:32 +00:00
configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure";
2014-05-15 09:02:32 +00:00
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 [];
2014-05-15 09:02:32 +00:00
};
}