about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/citron/default.nix
blob: 17fa3c5e5a2103a9b17b95e385531b6b42e23747 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, rustPlatform
, fetchCrate
, dbus
, installShellFiles
, pkg-config
}:

rustPlatform.buildRustPackage rec {
  pname = "citron";
  version = "0.15.0";

  src = fetchCrate {
    inherit pname version;
    hash = "sha256-6wJ4UfiwpV9zFuBR8SYj6eBiRqQitFs7wRe5R51Z3SA=";
  };

  cargoHash = "sha256-xTmhgE4iHydhZBMrHWqQUcS9KDlZAzW2CmPGpJr40Fw=";

  buildInputs = [ dbus ];

  nativeBuildInputs = [ installShellFiles pkg-config ];

  postInstall = ''
    installManPage doc/citron.1
  '';

  meta = {
    homepage = "https://git.sr.ht/~grtcdr/citron";
    description = "System data via on-demand notifications";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ vuimuich ];
    platforms = lib.platforms.linux;
  };
}