3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/amqp/qpid-cpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, python2, boost, libuuid, ruby, buildEnv, buildPythonPackage, qpid-python }:
let
2020-03-29 11:34:50 +01:00
pname = "qpid-cpp";
name = "${pname}-${version}";
version = "1.39.0";
src = fetchurl {
url = "mirror://apache/qpid/cpp/${version}/${name}.tar.gz";
sha256 = "088dx1l6myrksbhpr15bs09j6qm8vdliqwjp2ja5amym47md103r";
};
meta = with lib; {
homepage = "https://qpid.apache.org";
description = "An AMQP message broker and a C++ messaging API";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ cpages ];
};
qpid-cpp = stdenv.mkDerivation {
2020-03-29 11:34:50 +01:00
inherit src meta pname version;
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 ([
"-Wno-error=deprecated-declarations"
"-Wno-error=int-in-bool-context"
"-Wno-error=maybe-uninitialized"
"-Wno-error=unused-function"
2019-01-15 17:21:49 +00:00
"-Wno-error=ignored-qualifiers"
"-Wno-error=catch-value"
2021-01-15 07:07:56 +00:00
] ++ lib.optionals stdenv.cc.isGNU [
"-Wno-error=deprecated-copy"
2019-12-31 01:59:40 +00:00
]);
};
python-frontend = buildPythonPackage {
2020-03-29 11:34:50 +01:00
inherit pname version meta src;
sourceRoot = "${name}/management/python";
propagatedBuildInputs = [ qpid-python ];
};
in buildEnv {
name = "${name}-env";
paths = [ qpid-cpp python-frontend ];
}