rabbitmq-c: remove unused inputs, split outputs

* Move to finalAttrs pattern
* Add pkgConfigModules
This commit is contained in:
Tobias Mayer
2024-12-17 08:53:54 +01:00
parent 2efaa5cbe4
commit 4bf5aed68f
+15 -10
View File
@@ -4,32 +4,37 @@
fetchFromGitHub,
cmake,
openssl,
popt,
xmlto,
testers,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rabbitmq-c";
version = "0.15.0";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "alanxz";
repo = "rabbitmq-c";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-uOI+YV9aV/LGlSxr75sSii5jQ005smCVe14QAGNpKY8=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
openssl
popt
xmlto
];
buildInputs = [ openssl ];
meta = with lib; {
description = "RabbitMQ C AMQP client library";
homepage = "https://github.com/alanxz/rabbitmq-c";
license = licenses.mit;
platforms = platforms.unix;
pkgConfigModules = [ "librabbitmq" ];
};
}
passthru = {
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
})