depot/third_party/nixpkgs/pkgs/by-name/wa/wayidle/package.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

27 lines
692 B
Nix

{ lib
, rustPlatform
, fetchFromSourcehut
}:
rustPlatform.buildRustPackage rec {
pname = "wayidle";
version = "0.2.0";
src = fetchFromSourcehut {
owner = "~whynothugo";
repo = "wayidle";
rev = "v${version}";
hash = "sha256-7hFk/YGOQ5+gQy6pT5DRgMLThQ1vFAvUvdHekTyzIRU=";
};
cargoHash = "sha256-PohfLmUoK+2a7Glnje4Rbym2rvzydUJAYW+edOj7qeo=";
meta = with lib; {
description = "Execute a program when a Wayland compositor reports being N seconds idle";
homepage = "https://git.sr.ht/~whynothugo/wayidle";
license = licenses.isc;
maintainers = with maintainers; [ tomfitzhenry ];
mainProgram = "wayidle";
platforms = platforms.linux;
};
}