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