1{ stdenv, fetchzip, ocaml, findlib }:
2
3stdenv.mkDerivation {
4
5 name = "ocaml-csv-1.4.1";
6
7 src = fetchzip {
8 url = https://github.com/Chris00/ocaml-csv/releases/download/1.4.1/csv-1.4.1.tar.gz;
9 sha256 = "1z38qy92lq8qh91bs70vsv868szainif53a2y6rf47ijdila25j4";
10 };
11
12 buildInputs = [ ocaml findlib ];
13
14 createFindlibDestdir = true;
15
16 configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
17
18 buildPhase = "ocaml setup.ml -build";
19
20 doCheck = true;
21 checkPhase = "ocaml setup.ml -test";
22
23 installPhase = "ocaml setup.ml -install";
24
25 meta = with stdenv.lib; {
26 description = "A pure OCaml library to read and write CSV files";
27 homepage = https://github.com/Chris00/ocaml-csv;
28 license = licenses.lgpl21;
29 maintainers = [ maintainers.vbgl ];
30 platforms = ocaml.meta.platforms;
31 };
32}