systemctl-tui: format + testVersion + updateScript

This commit is contained in:
Gaetan Lepage 2024-08-22 16:34:28 +02:00
parent ffeaefab23
commit 5b9f7a8359

View File

@ -1,8 +1,12 @@
{ lib {
, rustPlatform lib,
, fetchCrate rustPlatform,
, stdenv fetchCrate,
, darwin stdenv,
darwin,
nix-update-script,
testers,
systemctl-tui,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@ -16,15 +20,19 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-rlKizeWPWZUy23IHII6hrNVLFUR5xSkDQxYrc5WToC0="; cargoHash = "sha256-rlKizeWPWZUy23IHII6hrNVLFUR5xSkDQxYrc5WToC0=";
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
darwin.apple_sdk.frameworks.AppKit
];
meta = with lib; { passthru = {
updateScript = nix-update-script;
tests.version = testers.testVersion { package = systemctl-tui; };
};
meta = {
description = "Simple TUI for interacting with systemd services and their logs"; description = "Simple TUI for interacting with systemd services and their logs";
homepage = "https://crates.io/crates/systemctl-tui"; homepage = "https://crates.io/crates/systemctl-tui";
license = licenses.mit; changelog = "https://github.com/rgwood/systemctl-tui/releases/tag/v${version}";
maintainers = with maintainers; [ siph ]; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ siph ];
mainProgram = "systemctl-tui"; mainProgram = "systemctl-tui";
}; };
} }