rabbitmq-c: remove unused inputs, split outputs
* Move to finalAttrs pattern * Add pkgConfigModules
This commit is contained in:
@@ -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;
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user