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