diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/citron')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/citron/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/citron/default.nix b/nixpkgs/pkgs/tools/misc/citron/default.nix new file mode 100644 index 000000000000..d40c8c936928 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/citron/default.nix @@ -0,0 +1,36 @@ +{ 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; + mainProgram = "citron"; + }; +} |