Merge pull request #293189 from cafkafk/kminion-init
kminion: init at 2.2.6
This commit is contained in:
commit
6ed6c55f12
2 changed files with 35 additions and 0 deletions
31
pkgs/by-name/km/kminion/package.nix
Normal file
31
pkgs/by-name/km/kminion/package.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "kafka-minion";
|
||||
version = "2.2.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "redpanda-data";
|
||||
repo = "kminion";
|
||||
rev = "0c90d4301ed4600d1aaf3345b6f16587d2f282fc";
|
||||
hash = "sha256-CWjX46Sfc9Xj+R7+CZeMuTY0iUStzyZXI4FotwqR44M=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-6yfQVoY/bHMA4s0IN5ltnQdHWnE3kIKza36uEcGa11U=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ cafkafk ];
|
||||
mainProgram = "kminion";
|
||||
};
|
||||
}
|
4
pkgs/by-name/km/kminion/update.sh
Normal file
4
pkgs/by-name/km/kminion/update.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p nix-update
|
||||
|
||||
nix-update kminion
|
Loading…
Reference in a new issue