nixpkgs/pkgs/by-name/kl/klog-rs/package.nix
2024-10-31 03:54:13 +00:00

34 lines
881 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "klog-rs";
version = "0.1.0";
src = fetchFromGitHub {
owner = "tobifroe";
repo = "klog";
rev = version;
hash = "sha256-MAHLTNKN0t0rUXd4f238/jcaUlcTdC3IvaviMRu6gKg=";
};
cargoHash = "sha256-u+kctG+38Z2xYTA9h0OY4L1zzKyAT2Wlwf08zSqxV0I=";
checkFlags = [
# this integration test depends on a running kubernetes cluster
"--skip=k8s::tests::test_get_pod_list"
];
meta = {
description = "Tool to tail logs of multiple Kubernetes pods simultaneously";
homepage = "https://github.com/tobifroe/klog";
changelog = "https://github.com/tobifroe/klog/releases/tag/${version}";
license = lib.licenses.mit;
mainProgram = "klog";
maintainers = with lib.maintainers; [ tobifroe ];
broken = stdenv.hostPlatform.isDarwin;
};
}