1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/by-name/wa/wayidle/package.nix

28 lines
692 B
Nix
Raw Normal View History

2023-10-09 18:10:29 +01:00
{ lib
, rustPlatform
, fetchFromSourcehut
}:
rustPlatform.buildRustPackage rec {
pname = "wayidle";
2024-06-27 01:39:21 +01:00
version = "0.2.0";
2023-10-09 18:10:29 +01:00
src = fetchFromSourcehut {
owner = "~whynothugo";
repo = "wayidle";
rev = "v${version}";
2024-06-27 01:39:21 +01:00
hash = "sha256-7hFk/YGOQ5+gQy6pT5DRgMLThQ1vFAvUvdHekTyzIRU=";
2023-10-09 18:10:29 +01:00
};
2024-06-27 01:39:21 +01:00
cargoHash = "sha256-PohfLmUoK+2a7Glnje4Rbym2rvzydUJAYW+edOj7qeo=";
2023-10-09 18:10:29 +01:00
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;
};
}