2022-05-12 05:00:42 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-11-16 16:01:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, perl
|
|
|
|
, python3
|
|
|
|
, openssl
|
|
|
|
, xorg
|
2022-05-12 05:00:42 +00:00
|
|
|
, AppKit
|
2021-11-16 16:01:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kdash";
|
2022-05-04 06:46:19 +00:00
|
|
|
version = "0.3.1";
|
2021-11-16 16:01:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdash-rs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-05-04 06:46:19 +00:00
|
|
|
sha256 = "08ca638kvs98xhbc9g1szw0730cjk9g01qqaja8j413n2h1pr8yq";
|
2021-11-16 16:01:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl python3 pkg-config ];
|
|
|
|
|
2022-05-12 05:00:42 +00:00
|
|
|
buildInputs = [ openssl xorg.xcbutil ]
|
|
|
|
++ lib.optional stdenv.isDarwin AppKit;
|
2021-11-16 16:01:15 +00:00
|
|
|
|
2022-05-04 06:46:19 +00:00
|
|
|
cargoSha256 = "0nb554y8r7gvw7ls6gnrg98xxbws0mc6zdsc6ss3p2x9z8xwx204";
|
2021-11-16 16:01:15 +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 ];
|
|
|
|
};
|
|
|
|
}
|