depot/third_party/nixpkgs/pkgs/by-name/wa/wayidle/package.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

27 lines
692 B
Nix

{ lib
, rustPlatform
, fetchFromSourcehut
}:
rustPlatform.buildRustPackage rec {
pname = "wayidle";
version = "0.1.1";
src = fetchFromSourcehut {
owner = "~whynothugo";
repo = "wayidle";
rev = "v${version}";
hash = "sha256-6wULrwGnXLdrX/THanJThbykKjNKpGukw9dj0jX0/dM=";
};
cargoHash = "sha256-zF2s3XSXnN7jVtv/0axzHiIJd/cb6wMYAOQILXp1U5U=";
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;
};
}