git.iko.soy/typeable/nixpkgs
on master help sign in
ocaml-csv: 1.3.3 -> 1.4
ee34bdeVincent Laporte
pkgs/development/ocaml-modules/csv/default.nix+10−9
@@ -1,29 +1,30 @@
1−{stdenv, fetchurl, ocaml, findlib}:
1+{ stdenv, fetchzip, ocaml, findlib }:
2−
3−assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
4
2
5stdenv.mkDerivation {
3stdenv.mkDerivation {
6
4
7− name = "ocaml-csv-1.3.3";
5+ name = "ocaml-csv-1.4";
8
6
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";
12 };
10 };
13
11
14 buildInputs = [ ocaml findlib ];
12 buildInputs = [ ocaml findlib ];
15
13
16 createFindlibDestdir = true;
14 createFindlibDestdir = true;
17
15
18− configurePhase = "ocaml setup.ml -configure --prefix $out";
16+ configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
19
17
20 buildPhase = "ocaml setup.ml -build";
18 buildPhase = "ocaml setup.ml -build";
21
19
20+ doCheck = true;
21+ checkPhase = "ocaml setup.ml -test";
22+
22 installPhase = "ocaml setup.ml -install";
23 installPhase = "ocaml setup.ml -install";
23
24
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;