Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.0 KiB
Nix
Raw Normal View History

{
rustPlatform,
lib,
fetchFromGitHub,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "rabbitmqadmin-ng";
2025-04-07 00:23:49 +00:00
version = "2.0.0";
src = fetchFromGitHub {
owner = "rabbitmq";
repo = "rabbitmqadmin-ng";
tag = "v${version}";
2025-04-07 00:23:49 +00:00
hash = "sha256-M3YaqBwSj/5d936oOVA6JmqWYEU8kDYP+2ImjlOiAqo=";
};
useFetchCargoVendor = true;
2025-04-07 00:23:49 +00:00
cargoHash = "sha256-Ik3G9McsFO+NIEBuB9N1HSXeIpULSPTHx4V2ulpgDio=";
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";
};
}