2025-02-26 13:01:06 +01:00
|
|
|
{
|
|
|
|
|
rustPlatform,
|
|
|
|
|
lib,
|
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
pkg-config,
|
|
|
|
|
openssl,
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
|
pname = "rabbitmqadmin-ng";
|
2025-04-07 00:23:49 +00:00
|
|
|
version = "2.0.0";
|
2025-02-26 13:01:06 +01:00
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "rabbitmq";
|
|
|
|
|
repo = "rabbitmqadmin-ng";
|
|
|
|
|
tag = "v${version}";
|
2025-04-07 00:23:49 +00:00
|
|
|
hash = "sha256-M3YaqBwSj/5d936oOVA6JmqWYEU8kDYP+2ImjlOiAqo=";
|
2025-02-26 13:01:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
useFetchCargoVendor = true;
|
2025-04-07 00:23:49 +00:00
|
|
|
cargoHash = "sha256-Ik3G9McsFO+NIEBuB9N1HSXeIpULSPTHx4V2ulpgDio=";
|
2025-02-26 13:01:06 +01:00
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
|
|
# This requires a running rabbitmq instance to communicate with that needs
|
|
|
|
|
# to be set up by hand. It should be possible to run tests in the future
|
|
|
|
|
# if we ever add a `rabbitmqTestHook`, similar to the `postgresqlTestHook`.
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "Command line tool for RabbitMQ that uses the HTTP API";
|
|
|
|
|
teams = [ lib.teams.flyingcircus ];
|
|
|
|
|
homepage = "https://www.rabbitmq.com/docs/management-cli";
|
|
|
|
|
license = with lib.licenses; [
|
|
|
|
|
mit
|
|
|
|
|
asl20
|
|
|
|
|
];
|
|
|
|
|
mainProgram = "rabbitmqadmin";
|
|
|
|
|
};
|
|
|
|
|
}
|