From 813164e0cddf9d243e76c25775902273bf6d3b51 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Tue, 15 Jan 2019 13:09:52 +0100 Subject: [PATCH] swayidle: init at 1.1 --- .../window-managers/sway/idle.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 32 insertions(+) create mode 100644 pkgs/applications/window-managers/sway/idle.nix diff --git a/pkgs/applications/window-managers/sway/idle.nix b/pkgs/applications/window-managers/sway/idle.nix new file mode 100644 index 000000000000..8227f4a8fa7e --- /dev/null +++ b/pkgs/applications/window-managers/sway/idle.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub +, meson, ninja, pkgconfig, scdoc +, wayland, wayland-protocols, systemd +}: + +stdenv.mkDerivation rec { + name = "swayidle-${version}"; + version = "1.1"; + + src = fetchFromGitHub { + owner = "swaywm"; + repo = "swayidle"; + rev = version; + sha256 = "1xmcd5wajyrxc8171pl7vhxqg4da482k5n1h0x1j9n07wz50wjqm"; + }; + + nativeBuildInputs = [ meson ninja pkgconfig scdoc ]; + buildInputs = [ wayland wayland-protocols systemd ]; + + meta = with stdenv.lib; { + description = "Idle management daemon for Wayland"; + longDescription = '' + Sway's idle management daemon. It is compatible with any Wayland + compositor which implements the KDE idle protocol. + ''; + inherit (src.meta) homepage; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ primeos ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 77b3bbb038f2..f98b0d86208f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17607,6 +17607,7 @@ in sway = callPackage ../applications/window-managers/sway { }; sway-beta = callPackage ../applications/window-managers/sway/beta.nix { }; + swayidle = callPackage ../applications/window-managers/sway/idle.nix { }; velox = callPackage ../applications/window-managers/velox { stConf = config.st.conf or null;