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

26 lines
715 B
Nix
Raw Normal View History

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