2018-03-23 22:56:45 +00:00
|
|
|
{ stdenv, fetchurl, cmake, python2, boost, libuuid, ruby, buildEnv, buildPythonPackage, qpid-python }:
|
2013-10-24 11:44:03 +01:00
|
|
|
|
2018-03-23 22:56:45 +00:00
|
|
|
let
|
2015-07-21 15:51:53 +01:00
|
|
|
name = "qpid-cpp-${version}";
|
2019-12-03 13:13:59 +00:00
|
|
|
version = "1.38.0";
|
2013-10-24 11:44:03 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-21 15:51:53 +01:00
|
|
|
url = "mirror://apache/qpid/cpp/${version}/${name}.tar.gz";
|
2019-12-03 13:13:59 +00:00
|
|
|
sha256 = "1q7nsl9g8xv81ymhpkdp9mlw3gkzba62gggp3b72f0ywpc3kc3cz";
|
2013-10-24 11:44:03 +01:00
|
|
|
};
|
|
|
|
|
2018-03-23 22:56:45 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-24 11:44:03 +01:00
|
|
|
homepage = http://qpid.apache.org;
|
|
|
|
repositories.git = git://git.apache.org/qpid.git;
|
|
|
|
repositories.svn = http://svn.apache.org/repos/asf/qpid;
|
|
|
|
description = "An AMQP message broker and a C++ messaging API";
|
2018-03-23 22:56:45 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cpages ma27 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
qpid-cpp = stdenv.mkDerivation {
|
|
|
|
inherit src meta name;
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
"-Wno-error=int-in-bool-context"
|
2018-05-31 01:12:23 +01: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"
|
2018-03-23 22:56:45 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
python-frontend = buildPythonPackage {
|
|
|
|
inherit name meta src;
|
|
|
|
|
|
|
|
sourceRoot = "${name}/management/python";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ qpid-python ];
|
2013-10-24 11:44:03 +01:00
|
|
|
};
|
2018-03-23 22:56:45 +00:00
|
|
|
in buildEnv {
|
|
|
|
name = "${name}-env";
|
|
|
|
paths = [ qpid-cpp python-frontend ];
|
2013-10-24 11:44:03 +01:00
|
|
|
}
|