summary refs log tree commit diff
path: root/pkgs/servers/amqp
diff options
context:
space:
mode:
authorCarles Pagès <page@cubata.homelinux.net>2013-10-24 12:44:03 +0200
committerEvgeny Egorochkin <phreedom@yandex.ru>2013-10-30 17:24:02 +0200
commit383bb29d234d3466e0b5decc3d4f31d5a06645ae (patch)
tree70e1a8ed1d86e7e4ec18a66060517476744529d3 /pkgs/servers/amqp
parente4ebc0336781901fea0718071a659fa5163cbc63 (diff)
downloadnixpkgs-383bb29d234d3466e0b5decc3d4f31d5a06645ae.tar
nixpkgs-383bb29d234d3466e0b5decc3d4f31d5a06645ae.tar.gz
nixpkgs-383bb29d234d3466e0b5decc3d4f31d5a06645ae.tar.bz2
nixpkgs-383bb29d234d3466e0b5decc3d4f31d5a06645ae.tar.lz
nixpkgs-383bb29d234d3466e0b5decc3d4f31d5a06645ae.tar.xz
nixpkgs-383bb29d234d3466e0b5decc3d4f31d5a06645ae.tar.zst
nixpkgs-383bb29d234d3466e0b5decc3d4f31d5a06645ae.zip
Add qpid v0.24
It includes both the broker and the C++ client lib. I had to do some hacks to
prevent the installer from putting thins outside $out.

Close #1134.
Diffstat (limited to 'pkgs/servers/amqp')
-rw-r--r--pkgs/servers/amqp/qpid-cpp/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/servers/amqp/qpid-cpp/default.nix b/pkgs/servers/amqp/qpid-cpp/default.nix
new file mode 100644
index 00000000000..9fc3520002c
--- /dev/null
+++ b/pkgs/servers/amqp/qpid-cpp/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchurl, cmake, python, boost, libuuid }:
+
+stdenv.mkDerivation rec {
+  name = "${project}-cpp-${version}";
+
+  project = "qpid";
+  version = "0.24";
+
+  src = fetchurl {
+    url = "mirror://apache/${project}/${version}/${name}.tar.gz";
+    sha256 = "08nfks5jjipy5i4b6mz62ijrz5ryq32c478ix7l3fzmaim3cy8b8";
+  };
+
+  buildInputs = [ cmake python boost libuuid ];
+
+  # workaround this
+  #/nix/store/n38ns73bm4iv62fihd9ih5b39w54yyaf-boost-1.54.0/include/boost/ptr_container/detail/map_iterator.hpp:52:48:
+  #error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
+  cmakeFlags = "-DENABLE_WARNINGS=OFF";
+
+  # the subdir managementgen wants to install python stuff in ${python} and
+  # the installation tries to create some folders in /var
+  patchPhase = ''
+    sed -i '/managementgen/d' CMakeLists.txt
+    sed -i '/ENV/d' src/CMakeLists.txt
+  '';
+
+  meta = {
+    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";
+    license = stdenv.lib.licenses.asl20;
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = [ stdenv.lib.maintainers.page ];
+  };
+}