Merge pull request #32073 from MikePlayle/add-libamqpcpp
libamqpcpp: init at 2.7.4
This commit is contained in:
commit
ea3daaaefd
4 changed files with 43 additions and 0 deletions
|
@ -422,6 +422,7 @@
|
|||
mirdhyn = "Merlin Gaillard <mirdhyn@gmail.com>";
|
||||
mirrexagon = "Andrew Abbott <mirrexagon@mirrexagon.com>";
|
||||
mjanczyk = "Marcin Janczyk <m@dragonvr.pl>";
|
||||
mjp = "Mike Playle <mike@mythik.co.uk>"; # github = "MikePlayle";
|
||||
mlieberman85 = "Michael Lieberman <mlieberman85@gmail.com>";
|
||||
modulistic = "Pablo Costa <modulistic@gmail.com>";
|
||||
mog = "Matthew O'Gorman <mog-lists@rldn.net>";
|
||||
|
|
27
pkgs/development/libraries/libamqpcpp/default.nix
Normal file
27
pkgs/development/libraries/libamqpcpp/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libamqpcpp-${version}";
|
||||
version = "2.7.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CopernicaMarketingSoftware";
|
||||
repo = "AMQP-CPP";
|
||||
rev = "v${version}";
|
||||
sha256 = "0m010bz0axawcpv4d1p1vx7c6r8lg27w2s2vjqpbpg99w35n6c8k";
|
||||
};
|
||||
|
||||
patches = [ ./libamqpcpp-darwin.patch ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library for communicating with a RabbitMQ server";
|
||||
homepage = https://github.com/CopernicaMarketingSoftware/AMQP-CPP;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.mjp ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -0,0 +1 @@
|
||||
+CXX ?= g++
|
||||
@@ -43 +44 @@ ${SHARED_LIB}: ${SHARED_OBJECTS}
|
||||
- ${LD} ${LD_FLAGS} -Wl,${SONAMEPARAMETER},lib$(LIBRARY_NAME).so.$(SONAME) -o $@ ${SHARED_OBJECTS}
|
||||
+ ${CXX} ${LD_FLAGS} -Wl,${SONAMEPARAMETER},lib$(LIBRARY_NAME).so.$(SONAME) -o $@ ${SHARED_OBJECTS}
|
||||
@@ -52 +53 @@ ${SHARED_OBJECTS}:
|
||||
- ${CPP} ${CPPFLAGS} -fpic -o $@ ${@:%.o=%.cpp}
|
||||
+ ${CXX} ${CPPFLAGS} -fpic -o $@ ${@:%.o=%.cpp}
|
||||
@@ -55 +56 @@ ${STATIC_OBJECTS}:
|
||||
- ${CPP} ${CPPFLAGS} -o $@ ${@:%.s.o=%.cpp}
|
||||
+ ${CXX} ${CPPFLAGS} -o $@ ${@:%.s.o=%.cpp}
|
|
@ -8918,6 +8918,8 @@ with pkgs;
|
|||
|
||||
libabw = callPackage ../development/libraries/libabw { };
|
||||
|
||||
libamqpcpp = callPackage ../development/libraries/libamqpcpp { };
|
||||
|
||||
libantlr3c = callPackage ../development/libraries/libantlr3c {};
|
||||
|
||||
libappindicator-gtk2 = callPackage ../development/libraries/libappindicator { gtkVersion = "2"; };
|
||||
|
|
Loading…
Reference in a new issue