diff options
author | Vincent Laporte <vincent.laporte@gmail.com> | 2014-08-17 00:31:35 +0200 |
---|---|---|
committer | Vincent Laporte <vincent.laporte@gmail.com> | 2014-08-17 00:55:32 +0200 |
commit | bce3730a3ceaa00376313f17fc59091885b0f6dc (patch) | |
tree | 181a7a1174d62e96b0a8ee6078c6eb333d9c6f60 /pkgs | |
parent | 474731b29e81f0e1a0e2962e44a1c208c4628d04 (diff) | |
download | nixlib-bce3730a3ceaa00376313f17fc59091885b0f6dc.tar nixlib-bce3730a3ceaa00376313f17fc59091885b0f6dc.tar.gz nixlib-bce3730a3ceaa00376313f17fc59091885b0f6dc.tar.bz2 nixlib-bce3730a3ceaa00376313f17fc59091885b0f6dc.tar.lz nixlib-bce3730a3ceaa00376313f17fc59091885b0f6dc.tar.xz nixlib-bce3730a3ceaa00376313f17fc59091885b0f6dc.tar.zst nixlib-bce3730a3ceaa00376313f17fc59091885b0f6dc.zip |
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/
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/csv/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/csv/default.nix b/pkgs/development/ocaml-modules/csv/default.nix new file mode 100644 index 000000000000..7178452e3dda --- /dev/null +++ b/pkgs/development/ocaml-modules/csv/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 10a2735f082a..0ad9d8b70f2b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { }; |