summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/gapi-ocaml
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-10-26 06:11:02 +0100
committerehmry <ehmry@posteo.net>2020-11-01 17:18:02 +0100
commit15812e11364ac8905cfc8b6804413143ae875e5b (patch)
tree44488bc2fd6034516964a22d25a9ffd8c49d1053 /pkgs/development/ocaml-modules/gapi-ocaml
parent86c6683e6208103224da74ace3d89031b3e10ab1 (diff)
downloadnixpkgs-15812e11364ac8905cfc8b6804413143ae875e5b.tar
nixpkgs-15812e11364ac8905cfc8b6804413143ae875e5b.tar.gz
nixpkgs-15812e11364ac8905cfc8b6804413143ae875e5b.tar.bz2
nixpkgs-15812e11364ac8905cfc8b6804413143ae875e5b.tar.lz
nixpkgs-15812e11364ac8905cfc8b6804413143ae875e5b.tar.xz
nixpkgs-15812e11364ac8905cfc8b6804413143ae875e5b.tar.zst
nixpkgs-15812e11364ac8905cfc8b6804413143ae875e5b.zip
ocamlPackages.gapi_ocaml: 0.3.19 → 0.4.1
Diffstat (limited to 'pkgs/development/ocaml-modules/gapi-ocaml')
-rw-r--r--pkgs/development/ocaml-modules/gapi-ocaml/default.nix21
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix
index b01d4b4a04c..348a70a0da9 100644
--- a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix
+++ b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix
@@ -1,10 +1,13 @@
-{ stdenv, fetchFromGitHub, buildDunePackage
-, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm
+{ lib, fetchFromGitHub, buildDunePackage, ocaml
+, cryptokit, ocamlnet, ocurl, yojson
+, ounit
 }:
 
 buildDunePackage rec {
   pname = "gapi-ocaml";
-  version = "0.3.19";
+  version = "0.4.1";
+
+  useDune2 = true;
 
   minimumOCamlVersion = "4.02";
 
@@ -12,16 +15,18 @@ buildDunePackage rec {
     owner = "astrada";
     repo = pname;
     rev = "v${version}";
-    sha256 = "04arif1p1vj5yr24cwicj70b7yx17hrgf4pl47vqg8ngcrdh71v9";
+    sha256 = "0riax23grjnq9pczmp1yv02ji0svvs2kbiqskj6f6yjviamnpa31";
   };
 
-  propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib ocamlnet yojson ];
-  buildInputs = [ xmlm ];
+  propagatedBuildInputs = [ cryptokit ocamlnet ocurl yojson ];
+
+  doCheck = lib.versionAtLeast ocaml.version "4.04";
+  checkInputs = [ ounit ];
 
   meta = {
     description = "OCaml client for google services";
     homepage = "http://gapi-ocaml.forge.ocamlcore.org";
-    license = stdenv.lib.licenses.mit;
-    maintainers = with stdenv.lib.maintainers; [ bennofs ];
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ bennofs ];
   };
 }