parent
d620d8fa67
commit
98d4e42145
@ -0,0 +1,32 @@ |
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, czmq, stdint }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-zmq-${version}"; |
||||
version = "20180726"; |
||||
src = fetchFromGitHub { |
||||
owner = "issuu"; |
||||
repo = "ocaml-zmq"; |
||||
rev = "d312a8458d6b688f75470248f11875fbbfa5bb1a"; |
||||
sha256 = "1f5l4bw78y4drabhyvmpj3z8k30bill33ca7bzhr02m55yf6gqpf"; |
||||
}; |
||||
|
||||
patches = [ |
||||
./ocaml-zmq-issue43.patch |
||||
]; |
||||
|
||||
buildInputs = [ ocaml findlib dune czmq ]; |
||||
|
||||
propagatedBuildInputs = [ stdint ]; |
||||
|
||||
buildPhase = "dune build -p zmq"; |
||||
|
||||
inherit (dune) installPhase; |
||||
|
||||
meta = with stdenv.lib; { |
||||
description = "ZeroMQ bindings for OCaml"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ akavel ]; |
||||
inherit (src.meta) homepage; |
||||
inherit (ocaml.meta) platforms; |
||||
}; |
||||
} |
@ -0,0 +1,12 @@ |
||||
{ stdenv, ocaml, findlib, dune, zmq, ocaml_lwt }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-zmq-lwt-${version}"; |
||||
inherit (zmq) version src installPhase meta; |
||||
|
||||
buildInputs = [ ocaml findlib dune ]; |
||||
|
||||
propagatedBuildInputs = [ zmq ocaml_lwt ]; |
||||
|
||||
buildPhase = "dune build -p zmq-lwt"; |
||||
} |
@ -0,0 +1,11 @@ |
||||
--- source/zmq/src/caml_zmq_stubs.c 1970-01-01 01:00:01.000000000 +0100
|
||||
+++ source/zmq/src/caml_zmq_stubs.c 1970-01-01 01:00:01.000000000 +0100
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "socket.h"
|
||||
#include "msg.h"
|
||||
|
||||
-#include <uint64.h>
|
||||
+#include <ocaml_stdint/uint64.h>
|
||||
|
||||
/**
|
||||
* Version
|
Loading…
Reference in new issue