@@ -1,29 +1,30 @@
1−{stdenv, fetchurl, ocaml, findlib}:
2−
3−assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
1+{ stdenv, fetchzip, ocaml, findlib }:
42
53stdenv.mkDerivation {
64
7− name = "ocaml-csv-1.3.3";
5+ name = "ocaml-csv-1.4";
86
9− src = fetchurl {
10− url = "https://forge.ocamlcore.org/frs/download.php/1376/csv-1.3.3.tar.gz";
11− sha256 = "19qsvw3n7k4xpy0sw7n5s29kzj91myihjljhr5js6xcxwj4cydh2";
7+ src = fetchzip {
8+ url = https://github.com/Chris00/ocaml-csv/releases/download/1.4/csv-1.4.tar.gz;
9+ sha256 = "0si0v79rxzyzmgyhd6lidpzxdlcpprlhg0pgrsf688g83xsclkwa";
1210 };
1311
1412 buildInputs = [ ocaml findlib ];
1513
1614 createFindlibDestdir = true;
1715
18− configurePhase = "ocaml setup.ml -configure --prefix $out";
16+ configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
1917
2018 buildPhase = "ocaml setup.ml -build";
2119
20+ doCheck = true;
21+ checkPhase = "ocaml setup.ml -test";
22+
2223 installPhase = "ocaml setup.ml -install";
2324
2425 meta = with stdenv.lib; {
2526 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;
2728 license = licenses.lgpl21;
2829 maintainers = [ maintainers.vbgl ];
2930 platforms = ocaml.meta.platforms;