nixpkgs-suyu/pkgs/development/libraries/rabbitmq-c/default.nix

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

31 lines
880 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, openssl, popt, xmlto }:
2013-12-13 17:10:06 +01:00
stdenv.mkDerivation rec {
pname = "rabbitmq-c";
2021-04-05 05:39:16 +02:00
version = "0.11.0";
2013-12-13 17:10:06 +01:00
2015-03-12 02:49:17 +01:00
src = fetchFromGitHub {
owner = "alanxz";
repo = "rabbitmq-c";
rev = "v${version}";
2021-04-05 05:39:16 +02:00
sha256 = "sha256-u1uOrZRiQOU/6vlLdQHypBRSCo3zw7FC1AI9v3NlBVE=";
2013-12-13 17:10:06 +01:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ openssl popt xmlto ];
2013-12-13 17:10:06 +01: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}
'';
meta = with lib; {
2013-12-13 17:10:06 +01:00
description = "RabbitMQ C AMQP client library";
homepage = "https://github.com/alanxz/rabbitmq-c";
2015-03-12 02:49:17 +01:00
license = licenses.mit;
platforms = platforms.unix;
2013-12-13 17:10:06 +01:00
};
}