2013-02-06 13:24:57 +01:00
|
|
|
{stdenv, fetchgit, automake, autoconf, libtool, pkgconfig, zeromq2, jdk}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jzmq-2.1.0";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/zeromq/jzmq.git;
|
|
|
|
rev = "946fd39780423b2df6e5efd9fa2cd863fd79c9db";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ automake autoconf libtool pkgconfig zeromq2 jdk ];
|
|
|
|
|
|
|
|
preConfigurePhases = ["./autogen.sh"];
|
2013-02-08 15:19:33 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e 's|(JAVAC)|(JAVAC) -encoding utf8|' src/Makefile.in
|
|
|
|
${if stdenv.system == "x86_64-darwin" then
|
|
|
|
'' sed -i -e 's~/Headers~/include~' -e 's~_JNI_INC_SUBDIRS=\".*\"~_JNI_INC_SUBDIRS=\"darwin\"~' configure
|
|
|
|
'' else ""}
|
|
|
|
'';
|
2013-02-06 13:24:57 +01:00
|
|
|
|
|
|
|
|
2013-09-02 18:50:49 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vizanto ];
|
2013-02-06 13:24:57 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.zeromq.org";
|
|
|
|
description = "Java bindings for ZeroMQ";
|
|
|
|
};
|
|
|
|
}
|