nixpkgs/pkgs/tools/misc/citron/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
770 B
Nix
Raw Normal View History

{ 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;
2023-11-27 01:17:53 +00:00
mainProgram = "citron";
};
}