libamqpcpp: build with cmake support (#349764)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by Felix Sandro and committed by GitHub acbab2f0 b76273df

+17 -10
+17 -10
pkgs/by-name/li/libamqpcpp/package.nix
··· 1 - { lib, stdenv, fetchFromGitHub, openssl }: 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + openssl, 7 + }: 2 8 3 - stdenv.mkDerivation rec { 9 + stdenv.mkDerivation (finalAttrs: { 4 10 pname = "libamqpcpp"; 5 11 version = "4.3.27"; 6 12 7 13 src = fetchFromGitHub { 8 14 owner = "CopernicaMarketingSoftware"; 9 15 repo = "AMQP-CPP"; 10 - rev = "v${version}"; 16 + rev = "v${finalAttrs.version}"; 11 17 sha256 = "sha256-iaOXdDIJOBXHyjE07CvU4ApTh71lmtMCyU46AV+MGXQ="; 12 18 }; 19 + 20 + nativeBuildInputs = [ cmake ]; 13 21 14 22 buildInputs = [ openssl ]; 15 23 16 24 patches = [ ./libamqpcpp-darwin.patch ]; 17 25 18 - makeFlags = [ "PREFIX=$(out)" ]; 19 - 20 26 enableParallelBuilding = true; 27 + doCheck = true; 21 28 22 - meta = with lib; { 29 + meta = { 23 30 description = "Library for communicating with a RabbitMQ server"; 24 31 homepage = "https://github.com/CopernicaMarketingSoftware/AMQP-CPP"; 25 - license = licenses.asl20; 26 - maintainers = [ maintainers.mjp ]; 27 - platforms = platforms.all; 32 + license = lib.licenses.asl20; 33 + maintainers = with lib.maintainers; [ mjp ]; 34 + platforms = lib.platforms.all; 28 35 }; 29 - } 36 + })