2024-10-22 02:04:01 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
cmake,
|
|
|
|
hyprutils,
|
|
|
|
wayland,
|
|
|
|
wayland-protocols,
|
|
|
|
wayland-scanner,
|
|
|
|
hyprlang,
|
2024-10-23 00:18:10 +00:00
|
|
|
sdbus-cpp_2,
|
2024-11-02 15:46:30 +00:00
|
|
|
systemdLibs,
|
2024-11-02 15:40:57 +00:00
|
|
|
nix-update-script,
|
2024-02-17 20:55:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "hypridle";
|
2024-11-02 15:40:57 +00:00
|
|
|
version = "0.1.5";
|
2024-02-17 20:55:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyprwm";
|
|
|
|
repo = "hypridle";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-11-02 15:40:57 +00:00
|
|
|
hash = "sha256-esE2L7+9CsmlSjTIHwU9VAhzvsFSMC3kO7EiutCPQpg=";
|
2024-02-17 20:55:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
2024-08-31 09:23:44 +00:00
|
|
|
wayland-scanner
|
2024-02-17 20:55:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
hyprlang
|
2024-10-22 02:04:01 +00:00
|
|
|
hyprutils
|
2024-10-23 00:18:10 +00:00
|
|
|
sdbus-cpp_2
|
2024-11-02 15:46:30 +00:00
|
|
|
systemdLibs
|
2024-02-17 20:55:39 +00:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
2024-11-02 15:40:57 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
2024-02-17 20:55:39 +00:00
|
|
|
meta = {
|
|
|
|
description = "Hyprland's idle daemon";
|
|
|
|
homepage = "https://github.com/hyprwm/hypridle";
|
|
|
|
license = lib.licenses.bsd3;
|
2024-10-24 04:40:37 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
iogamaster
|
2024-11-02 15:43:15 +00:00
|
|
|
johnrtitor
|
2024-10-24 04:40:37 +00:00
|
|
|
khaneliman
|
|
|
|
];
|
2024-02-17 20:55:39 +00:00
|
|
|
mainProgram = "hypridle";
|
2024-10-22 02:04:01 +00:00
|
|
|
platforms = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
2024-02-17 20:55:39 +00:00
|
|
|
};
|
|
|
|
})
|