2018-03-23 22:56:45 +00:00
|
|
|
{ stdenv, fetchurl, cmake, python2, boost, libuuid, ruby, buildEnv, buildPythonPackage, qpid-python }:
|
2013-10-24 10:44:03 +00:00
|
|
|
|
2018-03-23 22:56:45 +00:00
|
|
|
let
|
2020-03-29 10:34:50 +00:00
|
|
|
pname = "qpid-cpp";
|
|
|
|
name = "${pname}-${version}";
|
2019-11-07 14:09:08 +00:00
|
|
|
version = "1.39.0";
|
2013-10-24 10:44:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-21 14:51:53 +00:00
|
|
|
url = "mirror://apache/qpid/cpp/${version}/${name}.tar.gz";
|
2019-11-07 14:09:08 +00:00
|
|
|
sha256 = "088dx1l6myrksbhpr15bs09j6qm8vdliqwjp2ja5amym47md103r";
|
2013-10-24 10:44:03 +00:00
|
|
|
};
|
|
|
|
|
2018-03-23 22:56:45 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://qpid.apache.org";
|
|
|
|
repositories.git = "git://git.apache.org/qpid.git";
|
|
|
|
repositories.svn = "http://svn.apache.org/repos/asf/qpid";
|
2013-10-24 10:44:03 +00:00
|
|
|
description = "An AMQP message broker and a C++ messaging API";
|
2018-03-23 22:56:45 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2019-12-26 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ cpages ];
|
2018-03-23 22:56:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
qpid-cpp = stdenv.mkDerivation {
|
2020-03-29 10:34:50 +00:00
|
|
|
inherit src meta pname version;
|
2018-03-23 22:56:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost libuuid ruby python2 ];
|
|
|
|
|
|
|
|
# the subdir managementgen wants to install python stuff in ${python} and
|
|
|
|
# the installation tries to create some folders in /var
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/managementgen/d' CMakeLists.txt
|
|
|
|
sed -i '/ENV/d' src/CMakeLists.txt
|
|
|
|
sed -i '/management/d' CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
2019-12-31 01:59:40 +00:00
|
|
|
NIX_CFLAGS_COMPILE = toString ([
|
2018-03-23 22:56:45 +00:00
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
"-Wno-error=int-in-bool-context"
|
2018-05-31 00:12:23 +00:00
|
|
|
"-Wno-error=maybe-uninitialized"
|
|
|
|
"-Wno-error=unused-function"
|
2019-01-15 17:21:49 +00:00
|
|
|
"-Wno-error=ignored-qualifiers"
|
|
|
|
"-Wno-error=catch-value"
|
2019-12-27 04:20:36 +00:00
|
|
|
] ++ stdenv.lib.optionals stdenv.cc.isGNU [
|
2019-11-07 14:09:08 +00:00
|
|
|
"-Wno-error=deprecated-copy"
|
2019-12-31 01:59:40 +00:00
|
|
|
]);
|
2018-03-23 22:56:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
python-frontend = buildPythonPackage {
|
2020-03-29 10:34:50 +00:00
|
|
|
inherit pname version meta src;
|
2018-03-23 22:56:45 +00:00
|
|
|
|
|
|
|
sourceRoot = "${name}/management/python";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ qpid-python ];
|
2013-10-24 10:44:03 +00:00
|
|
|
};
|
2018-03-23 22:56:45 +00:00
|
|
|
in buildEnv {
|
|
|
|
name = "${name}-env";
|
|
|
|
paths = [ qpid-cpp python-frontend ];
|
2013-10-24 10:44:03 +00:00
|
|
|
}
|