2016-11-09 23:35:47 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, zeromq3, jdk }:
|
2013-02-06 12:24:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-11-09 23:35:47 +00:00
|
|
|
name = "jzmq-${version}";
|
|
|
|
version = "3.1.0";
|
2013-02-06 12:24:57 +00:00
|
|
|
|
2016-11-09 23:35:47 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zeromq";
|
|
|
|
repo = "jzmq";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1wlzs604mgmqmrgpk4pljx2nrlxzdfi3r8k59qlm90fx8qkqkc63";
|
2013-02-06 12:24:57 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:03:42 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ zeromq3 jdk ];
|
2013-02-06 12:24:57 +00:00
|
|
|
|
2013-02-08 14:19:33 +00:00
|
|
|
preConfigure = ''
|
2018-08-20 20:11:29 +01:00
|
|
|
${if stdenv.hostPlatform.system == "x86_64-darwin" then
|
2013-02-08 14:19:33 +00:00
|
|
|
'' sed -i -e 's~/Headers~/include~' -e 's~_JNI_INC_SUBDIRS=\".*\"~_JNI_INC_SUBDIRS=\"darwin\"~' configure
|
|
|
|
'' else ""}
|
|
|
|
'';
|
2013-02-06 12:24:57 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.zeromq.org;
|
2013-02-06 12:24:57 +00:00
|
|
|
description = "Java bindings for ZeroMQ";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-11-09 23:35:47 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vizanto ];
|
2013-02-06 12:24:57 +00:00
|
|
|
};
|
|
|
|
}
|