nixpkgs/pkgs/development/tools/kdash/default.nix
2022-12-26 21:48:31 +08:00

38 lines
799 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, perl
, python3
, openssl
, xorg
, AppKit
}:
rustPlatform.buildRustPackage rec {
pname = "kdash";
version = "0.3.6";
src = fetchFromGitHub {
owner = "kdash-rs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-dXkYHRB0VZ3FGe1Zu78ZzocaVV4zSGzxRMC0WOHiZrE=";
};
nativeBuildInputs = [ perl python3 pkg-config ];
buildInputs = [ openssl xorg.xcbutil ]
++ lib.optional stdenv.isDarwin AppKit;
cargoSha256 = "sha256-LWGoWFPZsTYa1hQnv1eNNmCKZsiLredvD6+kWanVEK0=";
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 ];
};
}