Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
844 B
Nix
40 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-bGbLQaYfNLem47iMPsNeKm4pP3+Pij9SJ3Nq5VWX3hE=";
|
|
|
|
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";
|
|
};
|
|
}
|