41 lines
960 B
Nix
41 lines
960 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "systemctl-tui";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rgwood";
|
|
repo = "systemctl-tui";
|
|
tag = "v${version}";
|
|
hash = "sha256-1KYaw4q1+dPHImjjCnUPXNu7ihdEfNuzQfHfPi1uDOw=";
|
|
};
|
|
|
|
cargoHash = "sha256-rOmoV8sHeoM2ypDlBbiLDIYHhFQZJ6T2D5VkSNW+uuc=";
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script;
|
|
};
|
|
|
|
meta = {
|
|
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 ];
|
|
mainProgram = "systemctl-tui";
|
|
};
|
|
}
|