Commit 0d84174a authored by Thomas Gerbet's avatar Thomas Gerbet
Browse files

rabbitmq-c: 0.13.0 -> 0.14.0

Include the "fix" for CVE-2023-35789

Changelog:
https://github.com/alanxz/rabbitmq-c/releases/tag/v0.14.0
parent 62d8cac6
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -2,25 +2,18 @@

stdenv.mkDerivation rec {
  pname = "rabbitmq-c";
  version = "0.13.0";
  version = "0.14.0";

  src = fetchFromGitHub {
    owner = "alanxz";
    repo = "rabbitmq-c";
    rev = "v${version}";
    sha256 = "sha256-4tSZ+eaLZAkSmFsGnIrRXNvn3xA/4sTKyYZ3hPUMcd0=";
    hash = "sha256-ffdnLEgUg+4G12JntjFag3ZXMvEL42hsrY6VT58ccJ0=";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ openssl popt xmlto ];

  # 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; {
    description = "RabbitMQ C AMQP client library";
    homepage = "https://github.com/alanxz/rabbitmq-c";