1{ stdenv, fetchurl, ocaml, findlib, jbuilder }:
2
3stdenv.mkDerivation rec {
4 version = "2.0";
5 name = "ocaml${ocaml.version}-csv-${version}";
6 src = fetchurl {
7 url = "https://github.com/Chris00/ocaml-csv/releases/download/2.0/csv-2.0.tbz";
8 sha256 = "1g6xsybwc5ifr7n4hkqlh3294njzca12xg86ghh6pqy350wpq1zp";
9 };
10
11 unpackCmd = "tar -xjf $src";
12
13 buildInputs = [ ocaml findlib jbuilder ];
14
15 buildPhase = "jbuilder build -p csv";
16
17 inherit (jbuilder) installPhase;
18
19 meta = {
20 description = "A pure OCaml library to read and write CSV files";
21 license = stdenv.lib.licenses.lgpl21;
22 maintainers = [ stdenv.lib.maintainers.vbgl ];
23 homepage = https://github.com/Chris00/ocaml-csv;
24 inherit (ocaml.meta) platforms;
25 };
26}