at 23.11-beta 37 lines 797 B view raw
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.4.4"; 16 17 src = fetchFromGitHub { 18 owner = "kdash-rs"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "sha256-gjGBhfdTFkFxxdovG9svIZr13JBNBGYPt9TLs3oJXP8="; 22 }; 23 24 nativeBuildInputs = [ perl python3 pkg-config ]; 25 26 buildInputs = [ openssl xorg.xcbutil ] 27 ++ lib.optional stdenv.isDarwin AppKit; 28 29 cargoHash = "sha256-Nt1Nc8V+R7KLxiB/l5QAh2qv7cIdwtytVpACxO2aPHg="; 30 31 meta = with lib; { 32 description = "A simple and fast dashboard for Kubernetes"; 33 homepage = "https://github.com/kdash-rs/kdash"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ matthiasbeyer ]; 36 }; 37}