mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
ocamlPackages.zmq: init at 20180726
This commit is contained in:
parent
d620d8fa67
commit
98d4e42145
@ -158,6 +158,11 @@
|
||||
github = "alexanderkjeldaas";
|
||||
name = "Alexander Kjeldaas";
|
||||
};
|
||||
akavel = {
|
||||
email = "czapkofan@gmail.com";
|
||||
github = "akavel";
|
||||
name = "Mateusz Czapliński";
|
||||
};
|
||||
akaWolf = {
|
||||
email = "akawolf0@gmail.com";
|
||||
github = "akaWolf";
|
||||
|
32
pkgs/development/ocaml-modules/zmq/default.nix
Normal file
32
pkgs/development/ocaml-modules/zmq/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
12
pkgs/development/ocaml-modules/zmq/lwt.nix
Normal file
12
pkgs/development/ocaml-modules/zmq/lwt.nix
Normal file
@ -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";
|
||||
}
|
11
pkgs/development/ocaml-modules/zmq/ocaml-zmq-issue43.patch
Normal file
11
pkgs/development/ocaml-modules/zmq/ocaml-zmq-issue43.patch
Normal file
@ -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
|
@ -753,6 +753,10 @@ let
|
||||
|
||||
zed = callPackage ../development/ocaml-modules/zed { };
|
||||
|
||||
zmq = callPackage ../development/ocaml-modules/zmq { };
|
||||
|
||||
zmq-lwt = callPackage ../development/ocaml-modules/zmq/lwt.nix { };
|
||||
|
||||
ocsigen_deriving = callPackage ../development/ocaml-modules/ocsigen-deriving {
|
||||
oasis = ocaml_oasis;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user