summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/csv
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-07-01 20:14:00 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-07-01 20:23:19 +0200
commitee34bde5e5087c9b11a48f81022485f073e4fed3 (patch)
treee94f744952f623a576f71e08c06f6c520dd47ac8 /pkgs/development/ocaml-modules/csv
parentf5c91c445f548caf083fa30c523b9cb4d19aaf91 (diff)
downloadnixlib-ee34bde5e5087c9b11a48f81022485f073e4fed3.tar
nixlib-ee34bde5e5087c9b11a48f81022485f073e4fed3.tar.gz
nixlib-ee34bde5e5087c9b11a48f81022485f073e4fed3.tar.bz2
nixlib-ee34bde5e5087c9b11a48f81022485f073e4fed3.tar.lz
nixlib-ee34bde5e5087c9b11a48f81022485f073e4fed3.tar.xz
nixlib-ee34bde5e5087c9b11a48f81022485f073e4fed3.tar.zst
nixlib-ee34bde5e5087c9b11a48f81022485f073e4fed3.zip
ocaml-csv: 1.3.3 -> 1.4
Diffstat (limited to 'pkgs/development/ocaml-modules/csv')
-rw-r--r--pkgs/development/ocaml-modules/csv/default.nix19
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/development/ocaml-modules/csv/default.nix b/pkgs/development/ocaml-modules/csv/default.nix
index 09679ced7444..16f755f17b39 100644
--- a/pkgs/development/ocaml-modules/csv/default.nix
+++ b/pkgs/development/ocaml-modules/csv/default.nix
@@ -1,29 +1,30 @@
-{stdenv, fetchurl, ocaml, findlib}:
-
-assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
+{ stdenv, fetchzip, ocaml, findlib }:
 
 stdenv.mkDerivation {
 
-  name = "ocaml-csv-1.3.3";
+  name = "ocaml-csv-1.4";
 
-  src = fetchurl {
-    url = "https://forge.ocamlcore.org/frs/download.php/1376/csv-1.3.3.tar.gz";
-    sha256 = "19qsvw3n7k4xpy0sw7n5s29kzj91myihjljhr5js6xcxwj4cydh2";
+  src = fetchzip {
+    url = https://github.com/Chris00/ocaml-csv/releases/download/1.4/csv-1.4.tar.gz;
+    sha256 = "0si0v79rxzyzmgyhd6lidpzxdlcpprlhg0pgrsf688g83xsclkwa";
   };
 
   buildInputs = [ ocaml findlib ];
 
   createFindlibDestdir = true;
 
-  configurePhase = "ocaml setup.ml -configure --prefix $out";
+  configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
 
   buildPhase = "ocaml setup.ml -build";
 
+  doCheck = true;
+  checkPhase = "ocaml setup.ml -test";
+
   installPhase = "ocaml setup.ml -install";
 
   meta = with stdenv.lib; {
     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;
     maintainers = [ maintainers.vbgl ];
     platforms = ocaml.meta.platforms;