2017-09-20 06:38:42 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, jbuilder }:
|
2017-07-12 19:24:54 +01:00
|
|
|
|
2017-09-20 06:38:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.0";
|
|
|
|
name = "ocaml${ocaml.version}-csv-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Chris00/ocaml-csv/releases/download/2.0/csv-2.0.tbz";
|
|
|
|
sha256 = "1g6xsybwc5ifr7n4hkqlh3294njzca12xg86ghh6pqy350wpq1zp";
|
|
|
|
};
|
2014-09-21 11:02:55 +01:00
|
|
|
|
2017-09-20 06:38:42 +01:00
|
|
|
unpackCmd = "tar -xjf $src";
|
2014-08-16 23:31:35 +01:00
|
|
|
|
2017-09-20 06:38:42 +01:00
|
|
|
buildInputs = [ ocaml findlib jbuilder ];
|
2014-08-16 23:31:35 +01:00
|
|
|
|
2017-09-20 06:38:42 +01:00
|
|
|
buildPhase = "jbuilder build -p csv";
|
2014-08-16 23:31:35 +01:00
|
|
|
|
2017-09-20 06:38:42 +01:00
|
|
|
inherit (jbuilder) installPhase;
|
2014-08-16 23:31:35 +01:00
|
|
|
|
2017-09-20 06:38:42 +01:00
|
|
|
meta = {
|
|
|
|
description = "A pure OCaml library to read and write CSV files";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
2017-09-20 21:14:32 +01:00
|
|
|
homepage = https://github.com/Chris00/ocaml-csv;
|
2017-09-20 06:38:42 +01:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
2014-08-16 23:31:35 +01:00
|
|
|
}
|