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-02-07 01:22:34 +00:00
|
|
|
version = "0.6.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdash-rs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-XY6aBqLHbif3RsytNm7JnDXspICJuhS7SJ+ApwTeqX4=";
|
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-02-07 01:22:34 +00:00
|
|
|
cargoHash = "sha256-ODQf+Fvil+oBJcM38h1HdrcgtJw0b65f5auLuZtUgik=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple and fast dashboard for Kubernetes";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "kdash";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/kdash-rs/kdash";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|