Adds ocaml library “csv”

This is a pure OCaml library to read and write CSV files, including all
extensions used by Excel — eg. quotes, newlines, 8 bit
characters in fields, "0 etc.

Homepage: https://forge.ocamlcore.org/projects/csv/
This commit is contained in:
Vincent Laporte 2014-08-17 00:31:35 +02:00
parent 474731b29e
commit bce3730a3c
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{stdenv, fetchurl, ocaml, findlib}:
stdenv.mkDerivation {
name = "ocaml-csv-1.3.3";
src = fetchurl {
url = "https://forge.ocamlcore.org/frs/download.php/1376/csv-1.3.3.tar.gz";
sha256 = "19qsvw3n7k4xpy0sw7n5s29kzj91myihjljhr5js6xcxwj4cydh2";
};
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
configurePhase = "ocaml setup.ml -configure --prefix $out";
buildPhase = "ocaml setup.ml -build";
installPhase = "ocaml setup.ml -install";
meta = {
description = "A pure OCaml library to read and write CSV files";
homepage = "https://forge.ocamlcore.org/projects/csv/";
license = stdenv.lib.licenses.lgpl21;
platforms = ocaml.meta.platforms;
};
}

View File

@ -3203,6 +3203,8 @@ let
cryptokit = callPackage ../development/ocaml-modules/cryptokit { };
csv = callPackage ../development/ocaml-modules/csv { };
deriving = callPackage ../development/tools/ocaml/deriving { };
easy-format = callPackage ../development/ocaml-modules/easy-format { };