2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, perl
|
|
|
|
, python3
|
|
|
|
, openssl
|
|
|
|
, xorg
|
2022-05-18 14:49:53 +00:00
|
|
|
, AppKit
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kdash";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.5.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdash-rs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-Vk0Pf5uF9AANv/vf32ZrICJJTp6QRsR/nFW40xnkImo=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl python3 pkg-config ];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = [ openssl xorg.xcbutil ]
|
|
|
|
++ lib.optional stdenv.isDarwin AppKit;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
cargoHash = "sha256-gY4ywjTokEc5Uv4InARH2s3WYiPGYSDDWk2kltyQa+0=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and fast dashboard for Kubernetes";
|
|
|
|
homepage = "https://github.com/kdash-rs/kdash";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|