about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-08-23 13:04:52 +0400
committerMichael Raskin <7c6f434c@mail.ru>2014-08-23 13:04:52 +0400
commit2f0b2be1f2e8cdafa1edc348b3907fd9fb294a19 (patch)
tree4dbb2e2846de9cc0c8eb0a4e462b7dc6a4c16cf2
parent84ea03fa3f91e40c68155a18919a28939c99d895 (diff)
parentbce3730a3ceaa00376313f17fc59091885b0f6dc (diff)
downloadnixlib-2f0b2be1f2e8cdafa1edc348b3907fd9fb294a19.tar
nixlib-2f0b2be1f2e8cdafa1edc348b3907fd9fb294a19.tar.gz
nixlib-2f0b2be1f2e8cdafa1edc348b3907fd9fb294a19.tar.bz2
nixlib-2f0b2be1f2e8cdafa1edc348b3907fd9fb294a19.tar.lz
nixlib-2f0b2be1f2e8cdafa1edc348b3907fd9fb294a19.tar.xz
nixlib-2f0b2be1f2e8cdafa1edc348b3907fd9fb294a19.tar.zst
nixlib-2f0b2be1f2e8cdafa1edc348b3907fd9fb294a19.zip
Merge pull request #3632 from vbgl/ocaml-csv
Adds ocaml library “csv”
-rw-r--r--pkgs/development/ocaml-modules/csv/default.nix27
-rw-r--r--pkgs/top-level/all-packages.nix2
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 b93b3bdcfca5..8555235fec16 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3230,6 +3230,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 { };