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.

31 lines
705 B
Nix
Raw Normal View History

2023-10-22 23:27:48 +01:00
{ lib
, rustPlatform
, fetchCrate
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "systemctl-tui";
2024-01-14 02:16:03 +00:00
version = "0.2.4";
2023-10-22 23:27:48 +01:00
src = fetchCrate {
inherit pname version;
2024-01-14 02:16:03 +00:00
hash = "sha256-SZmOCx9S5WWz9fSlicvT/glZKj5AsFDRnxmHbGxM9Ms=";
2023-10-22 23:27:48 +01:00
};
2024-01-14 02:16:03 +00:00
cargoHash = "sha256-zUc6RchoGtJB+gnJNwNu93to775fdM5JDJ4qYwRdJn0=";
2023-10-22 23:27:48 +01:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
];
meta = with lib; {
description = "A simple TUI for interacting with systemd services and their logs";
homepage = "https://crates.io/crates/systemctl-tui";
license = licenses.mit;
maintainers = with maintainers; [ siph ];
mainProgram = "systemctl-tui";
};
}