Skip to content

Commit

Permalink
kubexporter: init at 0.6.3; maintainers: add bakito (#384179)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Mar 1, 2025
2 parents 9c2f224 + 1df8cc8 commit 98ad32f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2547,6 +2547,12 @@
github = "Baitinq";
githubId = 30861839;
};
bakito = {
email = "github@bakito.ch";
name = "Marc Brugger";
github = "bakito";
githubId = 2733215;
};
baksa = {
email = "baksa@pm.me";
name = "Kryštof Baksa";
Expand Down
42 changes: 42 additions & 0 deletions pkgs/by-name/ku/kubexporter/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:

buildGoModule rec {
pname = "kubexporter";
version = "0.6.3";

src = fetchFromGitHub {
owner = "bakito";
repo = "kubexporter";
tag = "v${version}";
hash = "sha256-9TtoACuX6dEcoWX246a5PofEIksB5KnxzRjdk/HV/Ww=";
};

vendorHash = "sha256-SWStAW5XkZGM57ZoxrVdxM7vtmZpSPkByrhFREHqfW0=";

ldflags = [
"-s"
"-w"
"-X github.com/bakito/kubexporter/version.Version=${version}"
];

nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;

passthru.updateScript = nix-update-script { };

meta = {
description = "Tool for exporting Kubernetes resources as YAML or JSON files";
homepage = "/~https://github.com/bakito/kubexporter";
changelog = "/~https://github.com/bakito/kubexporter/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bakito ];
mainProgram = "kubexporter";
};
}

0 comments on commit 98ad32f

Please sign in to comment.