git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.zmq: init at 20180726
commit98d4e4214525a368b4bd31587f8932b6dd049ada authorMateusz Czapliński <czapkofan@gmail.com> dateTue 16 Oct 2018, 21:38 (8 years ago) parentd620d8f
5 files changed+64
maintainers/maintainer-list.nix+5 pkgs/development/ocaml-modules/zmq/default.nix+32 pkgs/development/ocaml-modules/zmq/lwt.nix+12 pkgs/development/ocaml-modules/zmq/ocaml-zmq-issue43.patch+11 pkgs/top-level/ocaml-packages.nix+4
maintainers/maintainer-list.nix+5
@@ -158,6 +158,11 @@
158158 github = "alexanderkjeldaas";
159159 name = "Alexander Kjeldaas";
160160 };
161+ akavel = {
162+ email = "czapkofan@gmail.com";
163+ github = "akavel";
164+ name = "Mateusz Czapliński";
165+ };
161166 akaWolf = {
162167 email = "akawolf0@gmail.com";
163168 github = "akaWolf";
pkgs/development/ocaml-modules/zmq/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, ocaml, findlib, dune, czmq, stdint }:
2+
3+stdenv.mkDerivation rec {
4+ name = "ocaml${ocaml.version}-zmq-${version}";
5+ version = "20180726";
6+ src = fetchFromGitHub {
7+ owner = "issuu";
8+ repo = "ocaml-zmq";
9+ rev = "d312a8458d6b688f75470248f11875fbbfa5bb1a";
10+ sha256 = "1f5l4bw78y4drabhyvmpj3z8k30bill33ca7bzhr02m55yf6gqpf";
11+ };
12+
13+ patches = [
14+ ./ocaml-zmq-issue43.patch
15+ ];
16+
17+ buildInputs = [ ocaml findlib dune czmq ];
18+
19+ propagatedBuildInputs = [ stdint ];
20+
21+ buildPhase = "dune build -p zmq";
22+
23+ inherit (dune) installPhase;
24+
25+ meta = with stdenv.lib; {
26+ description = "ZeroMQ bindings for OCaml";
27+ license = licenses.mit;
28+ maintainers = with maintainers; [ akavel ];
29+ inherit (src.meta) homepage;
30+ inherit (ocaml.meta) platforms;
31+ };
32+}
pkgs/development/ocaml-modules/zmq/lwt.nixnew file+12
@@ -0,0 +1,12 @@
1+{ stdenv, ocaml, findlib, dune, zmq, ocaml_lwt }:
2+
3+stdenv.mkDerivation rec {
4+ name = "ocaml${ocaml.version}-zmq-lwt-${version}";
5+ inherit (zmq) version src installPhase meta;
6+
7+ buildInputs = [ ocaml findlib dune ];
8+
9+ propagatedBuildInputs = [ zmq ocaml_lwt ];
10+
11+ buildPhase = "dune build -p zmq-lwt";
12+}
pkgs/development/ocaml-modules/zmq/ocaml-zmq-issue43.patchnew file+11
@@ -0,0 +1,11 @@
1+--- source/zmq/src/caml_zmq_stubs.c 1970-01-01 01:00:01.000000000 +0100
2++++ source/zmq/src/caml_zmq_stubs.c 1970-01-01 01:00:01.000000000 +0100
3+@@ -35,7 +35,7 @@
4+ #include "socket.h"
5+ #include "msg.h"
6+
7+-#include <uint64.h>
8++#include <ocaml_stdint/uint64.h>
9+
10+ /**
11+ * Version
pkgs/top-level/ocaml-packages.nix+4
@@ -753,6 +753,10 @@ let
753753
754754 zed = callPackage ../development/ocaml-modules/zed { };
755755
756+ zmq = callPackage ../development/ocaml-modules/zmq { };
757+
758+ zmq-lwt = callPackage ../development/ocaml-modules/zmq/lwt.nix { };
759+
756760 ocsigen_deriving = callPackage ../development/ocaml-modules/ocsigen-deriving {
757761 oasis = ocaml_oasis;
758762 };