mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
systemctl-tui: format + testVersion + updateScript
This commit is contained in:
parent
ffeaefab23
commit
5b9f7a8359
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user