1 { lib, stdenv, fetchFromGitHub, cmake, openssl, popt, xmlto }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-4tSZ+eaLZAkSmFsGnIrRXNvn3xA/4sTKyYZ3hPUMcd0=";
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ openssl popt xmlto ];
17 # https://github.com/alanxz/rabbitmq-c/issues/733
19 substituteInPlace CMakeLists.txt \
20 --replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
21 --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
25 description = "RabbitMQ C AMQP client library";
26 homepage = "https://github.com/alanxz/rabbitmq-c";
27 license = licenses.mit;
28 platforms = platforms.unix;