2024-02-17 21:55:39 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, hyprlang
|
|
|
|
, sdbus-cpp
|
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "hypridle";
|
2024-04-18 23:02:49 +02:00
|
|
|
version = "0.1.2";
|
2024-02-17 21:55:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyprwm";
|
|
|
|
repo = "hypridle";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-04-18 23:02:49 +02:00
|
|
|
hash = "sha256-7Ft5WZTMIjXOGgRCf31DZBwK6RK8xkeKlD5vFXz3gII=";
|
2024-02-17 21:55:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
hyprlang
|
|
|
|
sdbus-cpp
|
|
|
|
systemd
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Hyprland's idle daemon";
|
|
|
|
homepage = "https://github.com/hyprwm/hypridle";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ iogamaster ];
|
|
|
|
mainProgram = "hypridle";
|
|
|
|
platforms = [ "aarch64-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
})
|