nixpkgs/pkgs/by-name/sy/systemctl-tui/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
977 B
Nix
Raw Normal View History

{
lib,
rustPlatform,
fetchCrate,
stdenv,
darwin,
nix-update-script,
testers,
systemctl-tui,
2023-10-22 22:27:48 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "systemctl-tui";
version = "0.3.8";
2023-10-22 22:27:48 +00:00
src = fetchCrate {
inherit pname version;
hash = "sha256-i2PKSvjsrITLp3a3EgfFF3IR464mkkDnh8ITLO+o0hU=";
2023-10-22 22:27:48 +00:00
};
cargoHash = "sha256-6cFK1wMO5VICfi3tN140XH9inQOkkSfHVogKhTHtQb8=";
2023-10-22 22:27:48 +00:00
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
2023-10-22 22:27:48 +00:00
passthru = {
updateScript = nix-update-script;
tests.version = testers.testVersion { package = systemctl-tui; };
};
meta = {
2023-10-22 22:27:48 +00:00
description = "Simple TUI for interacting with systemd services and their logs";
homepage = "https://crates.io/crates/systemctl-tui";
changelog = "https://github.com/rgwood/systemctl-tui/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ siph ];
2023-10-22 22:27:48 +00:00
mainProgram = "systemctl-tui";
};
}