2024-10-02 06:16:23 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
stdenv,
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "klog-rs";
|
2024-10-31 03:54:13 +00:00
|
|
|
version = "0.1.0";
|
2024-10-02 06:16:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tobifroe";
|
|
|
|
repo = "klog";
|
|
|
|
rev = version;
|
2024-10-31 03:54:13 +00:00
|
|
|
hash = "sha256-MAHLTNKN0t0rUXd4f238/jcaUlcTdC3IvaviMRu6gKg=";
|
2024-10-02 06:16:23 +00:00
|
|
|
};
|
2024-10-31 03:54:13 +00:00
|
|
|
cargoHash = "sha256-u+kctG+38Z2xYTA9h0OY4L1zzKyAT2Wlwf08zSqxV0I=";
|
2024-10-02 06:16:23 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|