ocaml-csv: 1.3.3 -> 1.4

This commit is contained in:
Vincent Laporte 2015-07-01 20:14:00 +02:00
parent f5c91c445f
commit ee34bde5e5

View File

@ -1,29 +1,30 @@
{stdenv, fetchurl, ocaml, findlib}: { stdenv, fetchzip, ocaml, findlib }:
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ocaml-csv-1.3.3"; name = "ocaml-csv-1.4";
src = fetchurl { src = fetchzip {
url = "https://forge.ocamlcore.org/frs/download.php/1376/csv-1.3.3.tar.gz"; url = https://github.com/Chris00/ocaml-csv/releases/download/1.4/csv-1.4.tar.gz;
sha256 = "19qsvw3n7k4xpy0sw7n5s29kzj91myihjljhr5js6xcxwj4cydh2"; sha256 = "0si0v79rxzyzmgyhd6lidpzxdlcpprlhg0pgrsf688g83xsclkwa";
}; };
buildInputs = [ ocaml findlib ]; buildInputs = [ ocaml findlib ];
createFindlibDestdir = true; createFindlibDestdir = true;
configurePhase = "ocaml setup.ml -configure --prefix $out"; configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
buildPhase = "ocaml setup.ml -build"; buildPhase = "ocaml setup.ml -build";
doCheck = true;
checkPhase = "ocaml setup.ml -test";
installPhase = "ocaml setup.ml -install"; installPhase = "ocaml setup.ml -install";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A pure OCaml library to read and write CSV files"; description = "A pure OCaml library to read and write CSV files";
homepage = "https://forge.ocamlcore.org/projects/csv/"; homepage = https://github.com/Chris00/ocaml-csv;
license = licenses.lgpl21; license = licenses.lgpl21;
maintainers = [ maintainers.vbgl ]; maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms; platforms = ocaml.meta.platforms;