1{ lib
2, stdenv
3, fetchFromGitHub
4, rustPlatform
5, pkg-config
6, perl
7, python3
8, openssl
9, xorg
10, AppKit
11}:
12
13rustPlatform.buildRustPackage rec {
14 pname = "kdash";
15 version = "0.6.0";
16
17 src = fetchFromGitHub {
18 owner = "kdash-rs";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "sha256-XY6aBqLHbif3RsytNm7JnDXspICJuhS7SJ+ApwTeqX4=";
22 };
23
24 nativeBuildInputs = [ perl python3 pkg-config ];
25
26 buildInputs = [ openssl xorg.xcbutil ]
27 ++ lib.optional stdenv.isDarwin AppKit;
28
29 cargoHash = "sha256-ODQf+Fvil+oBJcM38h1HdrcgtJw0b65f5auLuZtUgik=";
30
31 meta = with lib; {
32 description = "Simple and fast dashboard for Kubernetes";
33 mainProgram = "kdash";
34 homepage = "https://github.com/kdash-rs/kdash";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ matthiasbeyer ];
37 };
38}