mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
45 lines
935 B
Nix
45 lines
935 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "kafka-minion";
|
|
version = "2.2.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "redpanda-data";
|
|
repo = "kminion";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-s7kHMMU/srqww/N5szTvX6hOFDV9k9hm+0EZUxIj9So=";
|
|
};
|
|
|
|
vendorHash = "sha256-vdbSKEWlFH4UkuBxu0LFs8+Rwa4aWTjE8gD4zKuvcs4=";
|
|
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${finalAttrs.version}"
|
|
"-X main.builtAt=unknown"
|
|
];
|
|
|
|
passthru = {
|
|
tests = {
|
|
inherit (nixosTests.prometheus-exporters) kafka;
|
|
};
|
|
updateScript = ./update.sh;
|
|
};
|
|
|
|
meta = {
|
|
description = "Feature-rich Prometheus exporter for Apache Kafka written in Go";
|
|
homepage = "https://github.com/redpanda-data/kminion";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ cafkafk ];
|
|
mainProgram = "kminion";
|
|
};
|
|
})
|