about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/zmq
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2022-10-21 08:39:26 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2022-10-28 07:55:49 +0200
commit2575346f009f487543d8ca415fe9a411e6273d91 (patch)
tree24430122e516a9f654cac15b5a4c4eefea5e8cc7 /pkgs/development/ocaml-modules/zmq
parentb177479e0326cc7db4205a4131ebc813c23890e4 (diff)
ocamlPackages.zmq: 20180726 → 5.1.5
Diffstat (limited to 'pkgs/development/ocaml-modules/zmq')
-rw-r--r--pkgs/development/ocaml-modules/zmq/default.nix17
-rw-r--r--pkgs/development/ocaml-modules/zmq/lwt.nix3
2 files changed, 9 insertions, 11 deletions
diff --git a/pkgs/development/ocaml-modules/zmq/default.nix b/pkgs/development/ocaml-modules/zmq/default.nix
index 9779004085c3d..267566d7ba0aa 100644
--- a/pkgs/development/ocaml-modules/zmq/default.nix
+++ b/pkgs/development/ocaml-modules/zmq/default.nix
@@ -1,17 +1,14 @@
-{ lib, fetchFromGitHub, buildDunePackage, dune-configurator, czmq, stdint }:
+{ lib, fetchurl, buildDunePackage, dune-configurator, czmq, stdint }:
 
 buildDunePackage rec {
-  minimumOCamlVersion = "4.03";
   pname = "zmq";
-  version = "20180726";
+  version = "5.1.5";
 
-  useDune2 = true;
+  duneVersion = "3";
 
-  src = fetchFromGitHub {
-    owner = "issuu";
-    repo = "ocaml-zmq";
-    rev = "d312a8458d6b688f75470248f11875fbbfa5bb1a";
-    sha256 = "1f5l4bw78y4drabhyvmpj3z8k30bill33ca7bzhr02m55yf6gqpf";
+  src = fetchurl {
+    url = "https://github.com/issuu/ocaml-zmq/releases/download/${version}/zmq-lwt-${version}.tbz";
+    sha256 = "sha256-mUfRPatLPFeSzWDwCIoFaVl85VkvDch4i6pOn3Kme1Y=";
   };
 
   buildInputs = [ czmq dune-configurator ];
@@ -22,6 +19,6 @@ buildDunePackage rec {
     description = "ZeroMQ bindings for OCaml";
     license     = lib.licenses.mit;
     maintainers = with lib.maintainers; [ akavel ];
-    inherit (src.meta) homepage;
+    homepage = "https://engineering.issuu.com/ocaml-zmq/";
   };
 }
diff --git a/pkgs/development/ocaml-modules/zmq/lwt.nix b/pkgs/development/ocaml-modules/zmq/lwt.nix
index 6717e787f199c..f6408933452c1 100644
--- a/pkgs/development/ocaml-modules/zmq/lwt.nix
+++ b/pkgs/development/ocaml-modules/zmq/lwt.nix
@@ -2,7 +2,8 @@
 
 buildDunePackage {
   pname = "zmq-lwt";
-  inherit (zmq) version src useDune2 meta;
+  inherit (zmq) version src meta;
+  duneVersion = "3";
 
   propagatedBuildInputs = [ zmq ocaml_lwt ];
 }