1{
2 lib,
3 stdenv,
4 rustPlatform,
5 fetchFromGitHub,
6}:
7rustPlatform.buildRustPackage rec {
8 pname = "batmon";
9 version = "0.0.1";
10
11 src = fetchFromGitHub {
12 owner = "6543";
13 repo = "batmon";
14 tag = "v${version}";
15 hash = "sha256-+kjDNQKlaoI5fQ5FqYF6IPCKeE92WKxIhVCKafqfE0o=";
16 };
17
18 cargoHash = "sha256-0SXb8jBAYKnNFguamSMosPE6gH9aUzydF16w3SLhOU4=";
19
20 meta = {
21 description = "Interactive batteries viewer";
22 longDescription = ''
23 An interactive viewer, similar to top, htop and other *top utilities,
24 but about the batteries installed in your notebook.
25 '';
26 homepage = "https://github.com/6543/batmon/";
27 changelog = "https://github.com/6543/batmon/releases/tag/v${version}";
28 license = lib.licenses.asl20;
29 mainProgram = "batmon";
30 platforms = with lib.platforms; unix ++ windows;
31 broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;
32 maintainers = with lib.maintainers; [ _6543 ];
33 };
34}