2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, openssl, popt, xmlto }:
|
2013-12-13 16:10:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "rabbitmq-c";
|
2023-02-07 13:43:23 +00:00
|
|
|
version = "0.13.0";
|
2013-12-13 16:10:06 +00:00
|
|
|
|
2015-03-12 01:49:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alanxz";
|
|
|
|
repo = "rabbitmq-c";
|
|
|
|
rev = "v${version}";
|
2023-02-07 13:43:23 +00:00
|
|
|
sha256 = "sha256-4tSZ+eaLZAkSmFsGnIrRXNvn3xA/4sTKyYZ3hPUMcd0=";
|
2013-12-13 16:10:06 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ openssl popt xmlto ];
|
2013-12-13 16:10:06 +00:00
|
|
|
|
2022-05-18 18:15:03 +00:00
|
|
|
# https://github.com/alanxz/rabbitmq-c/issues/733
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
|
|
|
|
--replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2013-12-13 16:10:06 +00:00
|
|
|
description = "RabbitMQ C AMQP client library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/alanxz/rabbitmq-c";
|
2015-03-12 01:49:17 +00:00
|
|
|
license = licenses.mit;
|
2018-03-30 22:30:39 +00:00
|
|
|
platforms = platforms.unix;
|
2013-12-13 16:10:06 +00:00
|
|
|
};
|
|
|
|
}
|