3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/ocaml-text/default.nix

26 lines
703 B
Nix
Raw Normal View History

{ stdenv, lib, fetchzip, libiconv, ocaml, findlib, ocamlbuild, ncurses }:
2014-05-15 10:02:32 +01:00
2016-04-05 17:44:54 +01:00
stdenv.mkDerivation rec {
pname = "ocaml-text";
2016-04-05 17:44:54 +01:00
version = "0.8";
2014-05-15 10:02:32 +01:00
2016-04-05 17:44:54 +01:00
src = fetchzip {
url = "https://github.com/vbmithr/ocaml-text/archive/${version}.tar.gz";
sha256 = "11jamdfn5s19a0yvl012q1xvdk1grkp4rkrn819imqrvdplqkn1y";
2014-05-15 10:02:32 +01:00
};
buildInputs = [ ocaml findlib ocamlbuild ncurses libiconv ];
2014-05-15 10:02:32 +01:00
configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure";
2014-05-15 10:02:32 +01:00
createFindlibDestdir = true;
meta = {
homepage = "http://ocaml-text.forge.ocamlcore.org/";
description = "A library for convenient text manipulation";
license = lib.licenses.bsd3;
platforms = ocaml.meta.platforms or [];
2014-05-15 10:02:32 +01:00
};
}