2014-08-16 23:31:35 +01:00
|
|
|
{stdenv, fetchurl, ocaml, findlib}:
|
2014-09-21 11:02:55 +01:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
|
|
|
|
|
2014-08-16 23:31:35 +01:00
|
|
|
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";
|
|
|
|
|
2014-09-21 11:02:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-16 23:31:35 +01:00
|
|
|
description = "A pure OCaml library to read and write CSV files";
|
|
|
|
homepage = "https://forge.ocamlcore.org/projects/csv/";
|
2014-09-21 11:02:55 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-08-16 23:31:35 +01:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|