depot/third_party/nixpkgs/pkgs/by-name/ba/bato/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

39 lines
844 B
Nix

{
lib,
pkg-config,
cmake,
libnotify,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "bato";
version = "0.1.7";
src = fetchFromGitHub {
owner = "doums";
repo = "bato";
rev = "v${version}";
hash = "sha256-i2gw8vXiKutq26ACzkVXH3kED7jAngSv2mNo9P3qXnA=";
};
cargoHash = "sha256-cqrSyZjfBSfF015nwOcRy2rkE4XzFPxJCQZGrqZXLEA=";
nativeBuildInputs = [
pkg-config
cmake
];
buildInputs = [ libnotify ];
meta = {
description = "Small program to send battery notifications";
homepage = "https://github.com/doums/bato";
changelog = "https://github.com/doums/bato/releases/tag/v${version}";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ HaskellHegemonie ];
platforms = lib.platforms.linux;
mainProgram = "bato";
};
}